X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e5c6c33c530dc4b00cfcd58b6a0dbcae7e6e9d1..c5fe22f8f43dfb5cca0c09f639a8eafe314ae809:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index a5f8399a27..9dc2e5922d 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -292,7 +292,7 @@ wxBEGIN_PROPERTIES_TABLE(wxWindow) // Always constructor Properties first wxREADONLY_PROPERTY( Parent,wxWindow*, GetParent, EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) - wxPROPERTY( Id,wxWindowID, SetId, GetId, wxID_ANY, 0 /*flags*/ , wxT("Helpstring") , wxT("group") ) + wxPROPERTY( Id,wxWindowID, SetId, GetId, -1 /*wxID_ANY*/ , 0 /*flags*/ , wxT("Helpstring") , wxT("group") ) wxPROPERTY( Position,wxPoint, SetPosition , GetPosition, wxDefaultPosition , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // pos wxPROPERTY( Size,wxSize, SetSize, GetSize, wxDefaultSize , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // size wxPROPERTY( WindowStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style @@ -2321,7 +2321,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l #ifdef WM_PRINT case WM_PRINTCLIENT: if ( GetParent() && - GetParent()->MSWPrintChild(this, wParam, lParam) ) + GetParent()->MSWPrintChild((wxWindow *)this, wParam, lParam) ) { processed = true; }