X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c085e333984dc079a001cd3f581aeb1f51a1f227..e146b8c8bf449e2264ac3edc6a0228585c619dd1:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 8633deb50b..d6ba8ae923 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -20,10 +20,10 @@ class WXDLLEXPORT wxFont ; -void WXDLLEXPORT wxGetCharSize(WXHWND wnd, int *x, int *y,wxFont *the_font); -void WXDLLEXPORT wxSliderEvent(WXHWND control, WXWORD wParam, WXWORD pos); -wxWindow* WXDLLEXPORT wxFindWinFromHandle(WXHWND hWnd); -void WXDLLEXPORT wxScrollBarEvent(WXHWND hbar, WXWORD wParam, WXWORD pos); +WXDLLEXPORT void wxGetCharSize(WXHWND wnd, int *x, int *y,wxFont *the_font); +WXDLLEXPORT void wxSliderEvent(WXHWND control, WXWORD wParam, WXWORD pos); +WXDLLEXPORT wxWindow* wxFindWinFromHandle(WXHWND hWnd); +WXDLLEXPORT void wxScrollBarEvent(WXHWND hbar, WXWORD wParam, WXWORD pos); WXDLLEXPORT_DATA(extern HICON) wxSTD_FRAME_ICON; WXDLLEXPORT_DATA(extern HICON) wxSTD_MDIPARENTFRAME_ICON; @@ -33,19 +33,35 @@ WXDLLEXPORT_DATA(extern HICON) wxDEFAULT_MDIPARENTFRAME_ICON; WXDLLEXPORT_DATA(extern HICON) wxDEFAULT_MDICHILDFRAME_ICON; WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT; -extern HINSTANCE WXDLLEXPORT wxGetInstance(); -void WXDLLEXPORT wxFillLogFont(LOGFONT *logFont, wxFont *font); -wxFont WXDLLEXPORT wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNew = TRUE); +WXDLLEXPORT HINSTANCE wxGetInstance(); +WXDLLEXPORT void wxSetInstance(HINSTANCE hInst); +WXDLLEXPORT void wxFillLogFont(LOGFONT *logFont, wxFont *font); +WXDLLEXPORT wxFont wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNew = TRUE); #ifdef __GNUWIN32__ # define CASTWNDPROC (long unsigned) #else # ifdef __BORLANDC__ + +# ifdef __WIN32__ # define CASTWNDPROC +# else + typedef int (pascal * WndProcCast) (); +# define CASTWNDPROC (WndProcCast) +# endif + # else # if defined (__WIN32__) && defined(STRICT) typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long); # define CASTWNDPROC (WndProcCast) +# elif defined(__WIN16__) +# ifdef __BORLANDC__ + typedef int (pascal * WndProcCast) (); +# define CASTWNDPROC (WndProcCast) +# else + typedef int (PASCAL * WndProcCast) (); +# define CASTWNDPROC (WndProcCast) +# endif # else # define CASTWNDPROC # endif @@ -68,9 +84,9 @@ typedef signed short int SHORT ; #endif #if wxUSE_PENWIN -void WXDLLEXPORT wxRegisterPenWin(void); -void WXDLLEXPORT wxCleanUpPenWin(void); -void WXDLLEXPORT wxEnablePenAppHooks (bool hook); +WXDLLEXPORT void wxRegisterPenWin(); +WXDLLEXPORT void wxCleanUpPenWin(); +WXDLLEXPORT void wxEnablePenAppHooks (bool hook); #endif #if wxUSE_ITSY_BITSY @@ -90,13 +106,13 @@ VOID WINAPI ibAdjustWindowRect( HWND hWnd, LPRECT lprc ) ; * - NULL any extra child window pointers not created for this item * (e.g. label control that wasn't needed) * - delete any extra child windows in the destructor (e.g. label control) - * - implement GetSize and SetSize + * - implement DoSetSize * - to find panel position if coordinates are (-1, -1), use GetPosition * - call AdvanceCursor after creation, for panel layout mechanism. * */ -#if CTL3D +#if wxUSE_CTL3D #include #endif @@ -136,7 +152,7 @@ extern LONG APIENTRY _EXPORT wxSubclassedGenericControlProc(WXHWND hWnd, WXUINT message, WXWPARAM wParam, WXLPARAM lParam); // Find maximum size of window/rectangle -extern void WXDLLEXPORT wxFindMaxSize(WXHWND hwnd, RECT *rect); +WXDLLEXPORT extern void wxFindMaxSize(WXHWND hwnd, RECT *rect); // List of scrollbar controls WXDLLEXPORT_DATA(extern wxList) wxScrollBarList; @@ -145,14 +161,14 @@ WXDLLEXPORT_DATA(extern FARPROC) wxGenericControlSubClassProc; WXDLLEXPORT_DATA(extern char*) wxBuffer; WXDLLEXPORT_DATA(extern HINSTANCE) wxhInstance; -wxWindow* WXDLLEXPORT wxFindControlFromHandle(WXHWND hWnd); -void WXDLLEXPORT wxAddControlHandle(WXHWND hWnd, wxWindow *item); +WXDLLEXPORT wxWindow* wxFindControlFromHandle(WXHWND hWnd); +WXDLLEXPORT void wxAddControlHandle(WXHWND hWnd, wxWindow *item); // Safely get the window text (i.e. without using fixed size buffer) -extern wxString WXDLLEXPORT wxGetWindowText(WXHWND hWnd); +WXDLLEXPORT extern wxString wxGetWindowText(WXHWND hWnd); // Does this window style specify any border? -inline bool WXDLLEXPORT wxStyleHasBorder(long style) +inline bool wxStyleHasBorder(long style) { return (style & (wxSIMPLE_BORDER | wxRAISED_BORDER | wxSUNKEN_BORDER | wxDOUBLE_BORDER)) != 0; @@ -162,5 +178,22 @@ inline bool WXDLLEXPORT wxStyleHasBorder(long style) #define WS_EX_CLIENTEDGE 0 #endif +#if defined(__WIN32__) && !defined(WS_EX_CLIENTEDGE) + #define WS_EX_CLIENTEDGE 0x00000200L +#endif + +#if defined(__WIN95__) && defined(__WXDEBUG__) && wxUSE_DBWIN32 + +#ifndef __TWIN32__ +#ifdef OutputDebugString +#undef OutputDebugString +#endif + +#define OutputDebugString OutputDebugStringW95 +#endif + +extern void OutputDebugStringW95(const char*, ...); +#endif + #endif // _WX_PRIVATE_H_