1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Private declarations
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
19 #define VIEWPORT_EXTENT 1000
21 class WXDLLEXPORT wxFont
;
23 void WXDLLEXPORT
wxGetCharSize(WXHWND wnd
, int *x
, int *y
,wxFont
*the_font
);
24 void WXDLLEXPORT
wxSliderEvent(WXHWND control
, WXWORD wParam
, WXWORD pos
);
25 wxWindow
* WXDLLEXPORT
wxFindWinFromHandle(WXHWND hWnd
);
26 void WXDLLEXPORT
wxScrollBarEvent(WXHWND hbar
, WXWORD wParam
, WXWORD pos
);
28 WXDLLEXPORT_DATA(extern HICON
) wxSTD_FRAME_ICON
;
29 WXDLLEXPORT_DATA(extern HICON
) wxSTD_MDIPARENTFRAME_ICON
;
30 WXDLLEXPORT_DATA(extern HICON
) wxSTD_MDICHILDFRAME_ICON
;
31 WXDLLEXPORT_DATA(extern HICON
) wxDEFAULT_FRAME_ICON
;
32 WXDLLEXPORT_DATA(extern HICON
) wxDEFAULT_MDIPARENTFRAME_ICON
;
33 WXDLLEXPORT_DATA(extern HICON
) wxDEFAULT_MDICHILDFRAME_ICON
;
34 WXDLLEXPORT_DATA(extern HFONT
) wxSTATUS_LINE_FONT
;
36 extern HINSTANCE WXDLLEXPORT
wxGetInstance();
37 void WXDLLEXPORT
wxFillLogFont(LOGFONT
*logFont
, wxFont
*font
);
38 wxFont WXDLLEXPORT
wxCreateFontFromLogFont(LOGFONT
*logFont
); // , bool createNew = TRUE);
41 #define CASTWNDPROC (long unsigned)
43 typedef long (_stdcall
* WndProcCast
) (HWND
, unsigned int, unsigned int, long);
44 #define CASTWNDPROC (WndProcCast)
47 #if !defined(APIENTRY) // NT defines APIENTRY, 3.x not
48 #define APIENTRY FAR PASCAL
54 #define _EXPORT _export
55 typedef signed short int SHORT
;
58 #if !defined(__WIN32__) // 3.x uses FARPROC for dialogs
59 #define DLGPROC FARPROC
63 void WXDLLEXPORT
wxRegisterPenWin(void);
64 void WXDLLEXPORT
wxCleanUpPenWin(void);
65 void WXDLLEXPORT
wxEnablePenAppHooks (bool hook
);
69 #define IBS_HORZCAPTION 0x4000L
70 #define IBS_VERTCAPTION 0x8000L
72 UINT WINAPI
ibGetCaptionSize( HWND hWnd
) ;
73 UINT WINAPI
ibSetCaptionSize( HWND hWnd
, UINT nSize
) ;
74 LRESULT WINAPI
ibDefWindowProc( HWND hWnd
, UINT uiMsg
, WPARAM wParam
, LPARAM lParam
) ;
75 VOID WINAPI
ibAdjustWindowRect( HWND hWnd
, LPRECT lprc
) ;
78 /* When implementing a new item, be sure to:
80 * - add the item to the parent panel
81 * - set window_parent to the parent
82 * - NULL any extra child window pointers not created for this item
83 * (e.g. label control that wasn't needed)
84 * - delete any extra child windows in the destructor (e.g. label control)
85 * - implement GetSize and SetSize
86 * - to find panel position if coordinates are (-1, -1), use GetPosition
87 * - call AdvanceCursor after creation, for panel layout mechanism.
92 #include <wx/msw/ctl3d/ctl3d.h>
96 * Decide what window classes we're going to use
97 * for this combination of CTl3D/FAFA settings
100 #define STATIC_CLASS "STATIC"
101 #define STATIC_FLAGS (SS_LEFT|WS_CHILD|WS_VISIBLE)
102 #define CHECK_CLASS "BUTTON"
103 #define CHECK_FLAGS (BS_AUTOCHECKBOX|WS_TABSTOP|WS_CHILD)
104 #define CHECK_IS_FAFA FALSE
105 #define RADIO_CLASS "BUTTON"
106 #define RADIO_FLAGS (BS_AUTORADIOBUTTON|WS_CHILD|WS_VISIBLE)
107 #define RADIO_SIZE 20
108 #define RADIO_IS_FAFA FALSE
110 #define GROUP_CLASS "BUTTON"
111 #define GROUP_FLAGS (BS_GROUPBOX|WS_CHILD|WS_VISIBLE)
114 #define BITCHECK_FLAGS (FB_BITMAP|FC_BUTTONDRAW|FC_DEFAULT|WS_VISIBLE)
115 #define BITRADIO_FLAGS (FC_BUTTONDRAW|FB_BITMAP|FC_RADIO|WS_CHILD|WS_VISIBLE)
118 #define MEANING_CHARACTER '0'
119 #define DEFAULT_ITEM_WIDTH 200
120 #define DEFAULT_ITEM_HEIGHT 80
121 #define EDIT_CONTROL_FACTOR (15.0/10.0)
122 // Scale font to get edit control height
124 // Generic subclass proc, for panel item moving/sizing and intercept
125 // EDIT control VK_RETURN messages
126 extern LONG APIENTRY _EXPORT
127 wxSubclassedGenericControlProc(WXHWND hWnd
, WXUINT message
, WXWPARAM wParam
, WXLPARAM lParam
);
129 // Find maximum size of window/rectangle
130 extern void WXDLLEXPORT
wxFindMaxSize(WXHWND hwnd
, RECT
*rect
);
132 // List of scrollbar controls
133 WXDLLEXPORT_DATA(extern wxList
) wxScrollBarList
;
134 // The MakeProcInstance version of the function wxSubclassedGenericControlProc
135 WXDLLEXPORT_DATA(extern FARPROC
) wxGenericControlSubClassProc
;
136 WXDLLEXPORT_DATA(extern char*) wxBuffer
;
137 WXDLLEXPORT_DATA(extern HINSTANCE
) wxhInstance
;
139 wxWindow
* WXDLLEXPORT
wxFindControlFromHandle(WXHWND hWnd
);
140 void WXDLLEXPORT
wxAddControlHandle(WXHWND hWnd
, wxWindow
*item
);
142 #if !defined(__WIN32__) && !defined(WS_EX_CLIENTEDGE)
143 #define WS_EX_CLIENTEDGE 0