Remove MSWGetFocusHwnd() helper
It doesn't seem worth having it when it's only used in a couple of places in a single file, unlike GetHwnd() which is used in dozens of places across entire wxMSW.
This commit is contained in:
@@ -838,7 +838,6 @@ private:
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
#define GetHwnd() ((HWND)GetHWND())
|
#define GetHwnd() ((HWND)GetHWND())
|
||||||
#define MSWGetFocusHwnd() ((HWND)MSWGetFocusHWND())
|
|
||||||
#define GetHwndOf(win) ((HWND)((win)->GetHWND()))
|
#define GetHwndOf(win) ((HWND)((win)->GetHWND()))
|
||||||
// old name
|
// old name
|
||||||
#define GetWinHwnd GetHwndOf
|
#define GetWinHwnd GetHwndOf
|
||||||
|
@@ -577,7 +577,7 @@ void wxWindowMSW::SetId(wxWindowID winid)
|
|||||||
|
|
||||||
void wxWindowMSW::SetFocus()
|
void wxWindowMSW::SetFocus()
|
||||||
{
|
{
|
||||||
HWND hWnd = MSWGetFocusHwnd();
|
HWND hWnd = (HWND)MSWGetFocusHWND();
|
||||||
wxCHECK_RET( hWnd, wxT("can't set focus to invalid window") );
|
wxCHECK_RET( hWnd, wxT("can't set focus to invalid window") );
|
||||||
|
|
||||||
::SetLastError(0);
|
::SetLastError(0);
|
||||||
@@ -599,7 +599,7 @@ void wxWindowMSW::SetFocus()
|
|||||||
|
|
||||||
void wxWindowMSW::SetFocusFromKbd()
|
void wxWindowMSW::SetFocusFromKbd()
|
||||||
{
|
{
|
||||||
HWND hWnd = MSWGetFocusHwnd();
|
HWND hWnd = (HWND)MSWGetFocusHWND();
|
||||||
|
|
||||||
// when the focus is given to the control with DLGC_HASSETSEL style from
|
// when the focus is given to the control with DLGC_HASSETSEL style from
|
||||||
// keyboard its contents should be entirely selected: this is what
|
// keyboard its contents should be entirely selected: this is what
|
||||||
|
Reference in New Issue
Block a user