Bmpbuttons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2972,6 +2972,26 @@ MRESULT wxWindowOS2::OS2WindowProc(
|
||||
case WM_CONTROL:
|
||||
switch(SHORT2FROMMP(wParam))
|
||||
{
|
||||
case BN_PAINT:
|
||||
{
|
||||
HWND hWnd = ::WinWindowFromID((HWND)GetHwnd(), SHORT1FROMMP(wParam));
|
||||
wxWindowOS2* pWin = wxFindWinFromHandle(hWnd);
|
||||
|
||||
if (!pWin)
|
||||
{
|
||||
bProcessed = FALSE;
|
||||
break;
|
||||
}
|
||||
if (pWin->IsKindOf(CLASSINFO(wxBitmapButton)))
|
||||
{
|
||||
wxBitmapButton* pBitmapButton = wxDynamicCast(pWin, wxBitmapButton);
|
||||
|
||||
pBitmapButton->OS2OnDraw((WXDRAWITEMSTRUCT *)lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
||||
case BKN_PAGESELECTEDPENDING:
|
||||
{
|
||||
PPAGESELECTNOTIFY pPage = (PPAGESELECTNOTIFY)lParam;
|
||||
|
Reference in New Issue
Block a user