I think I have the solution.
You need to override the OnCreateClient call on your version of wxMDIParentFrame. You then have to override wxMDIClientWindow that has its own OnEraseBackground method. This will get called.
Search found 69 matches
- Sun Nov 15, 2009 2:11 pm
- Forum: C++ Development
- Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
- Replies: 7
- Views: 1919
- Sun Nov 15, 2009 5:13 am
- Forum: C++ Development
- Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
- Replies: 7
- Views: 1919
- Sat Nov 14, 2009 10:49 pm
- Forum: C++ Development
- Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
- Replies: 7
- Views: 1919
- Sat Nov 14, 2009 8:48 pm
- Forum: C++ Development
- Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
- Replies: 7
- Views: 1919
wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
I am trying to change the background color of the parent frame by iverriding the EVT_ERASE_BACKGROUND event but it never gets triggered. Any ideas why? I am using wx 2.8.10 on Win7. BEGIN_EVENT_TABLE(MyFrame, wxMDIParentFrame) EVT_ERASE_BACKGROUND(MyFrame::OnEraseBackground) END_EVENT_TABLE() ... vo...
- Sat Jun 16, 2007 3:40 pm
- Forum: C++ Development
- Topic: GetOpenCommand not working
- Replies: 4
- Views: 1135
- Thu Jun 14, 2007 7:10 pm
- Forum: C++ Development
- Topic: GetOpenCommand not working
- Replies: 4
- Views: 1135
- Thu Jun 14, 2007 5:44 pm
- Forum: C++ Development
- Topic: GetOpenCommand not working
- Replies: 4
- Views: 1135
GetOpenCommand not working
I am trying to open a file and am using the following code wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(ext); wxString cmd; bool ok = ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(filePath)); DoAsyncExec(cmd); The application brought back in cmd is not right. The fil...
- Sun Jun 10, 2007 4:09 am
- Forum: C++ Development
- Topic: focus and IEHtmlWin
- Replies: 0
- Views: 423
focus and IEHtmlWin
I have two panels. The left side has a wxListCtrl and the right panel has a IEHtmlWin. In the list I have a list of pdf files. When I select one it is loaded into the IEHtmlWin. This works great except when you hit the down arrow the focus is always on the IEHtmlWin. I have tried calling SetFocus af...
- Tue Mar 13, 2007 12:56 pm
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
- Tue Mar 13, 2007 1:48 am
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
- Tue Mar 13, 2007 1:47 am
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
- Mon Mar 12, 2007 8:24 pm
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
- Mon Mar 12, 2007 2:33 pm
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
- Mon Mar 12, 2007 1:33 pm
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
- Sun Mar 11, 2007 7:28 pm
- Forum: C++ Development
- Topic: Problem with wxPDFMediaBackend
- Replies: 15
- Views: 8136
Problem with wxPDFMediaBackend
I am using the code in the help docs trying to view a pdf. The code hits the CreateControl method in wxPDFMediaBackend so I know it is being compiled in. Unfortunatley thats all it does. if( ::CoCreateInstance(CLSID_Pdf, NULL, CLSCTX_INPROC_SERVER, DIID__DPdf, (void**)&pDispatch) != 0 ) return f...