Add WXWNDPROC typedef and use it in wxMSW instead of WXFARPROC
WNDPROC and FARPROC are not the same thing in MSW and it's wrong to use WXFARPROC as the type of different window procedures we use. Introduce WXWNDPROC which is more clear and correct and use it instead. Also get rid of a few casts which are not necessary any longer.
This commit is contained in:
@@ -939,7 +939,7 @@ extern WXDLLIMPEXP_CORE int wxGetWindowId(WXHWND hWnd);
|
||||
//
|
||||
// wndProc parameter is unused and only kept for compatibility
|
||||
extern WXDLLIMPEXP_CORE
|
||||
bool wxCheckWindowWndProc(WXHWND hWnd, WXFARPROC wndProc = NULL);
|
||||
bool wxCheckWindowWndProc(WXHWND hWnd, WXWNDPROC wndProc = NULL);
|
||||
|
||||
// Does this window style specify any border?
|
||||
inline bool wxStyleHasBorder(long style)
|
||||
|
Reference in New Issue
Block a user