Search found 69 matches

by bobmanc
Sun Nov 15, 2009 2:11 pm
Forum: C++ Development
Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
Replies: 7
Views: 1229

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.
by bobmanc
Sun Nov 15, 2009 5:13 am
Forum: C++ Development
Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
Replies: 7
Views: 1229

Sorry Jim,
That doesn't work either.
by bobmanc
Sat Nov 14, 2009 10:49 pm
Forum: C++ Development
Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
Replies: 7
Views: 1229

How can I paint a rectangle if i can't get the erase event to fire?

setBackground doesn't do anything that is why i was trying to override the erase event.
by bobmanc
Sat Nov 14, 2009 8:48 pm
Forum: C++ Development
Topic: wxMDIParentFrame never has EVT_ERASE_BACKGROUND event
Replies: 7
Views: 1229

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...
by bobmanc
Sat Jun 16, 2007 3:40 pm
Forum: C++ Development
Topic: GetOpenCommand not working
Replies: 4
Views: 612

Windows Explorer is using some other way to launch the app when the doc is doubleclicked. Anyone know how?
by bobmanc
Thu Jun 14, 2007 7:10 pm
Forum: C++ Development
Topic: GetOpenCommand not working
Replies: 4
Views: 612

I agree the registry is broken but it looks like explorer is looking somewhere else and is more accurate. I am just worried people using my app with thinks its broken when it is really the registry.
by bobmanc
Thu Jun 14, 2007 5:44 pm
Forum: C++ Development
Topic: GetOpenCommand not working
Replies: 4
Views: 612

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 file ex...
by bobmanc
Sun Jun 10, 2007 4:09 am
Forum: C++ Development
Topic: focus and IEHtmlWin
Replies: 0
Views: 253

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...
by bobmanc
Tue Mar 13, 2007 12:56 pm
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

What are the new values for CLSID_Pdf and DIID__DPdf?
by bobmanc
Tue Mar 13, 2007 1:48 am
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

The Acrobat Reader installers is what I meant.
by bobmanc
Tue Mar 13, 2007 1:47 am
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

Here is the latest.
I was able to download the installers for 6.01 and 7.09. Using the exact same wx code version 6.01 works fine. 7.09 and 8 both get the same error. E_NOINTERFACE returned fro the CoCreateInstance call.

Anybody been able to get this working on the later version?
by bobmanc
Mon Mar 12, 2007 8:24 pm
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

I am on WinXP and have Acrobat Reader 8. If I go into IE7 Manage Addons it lists Adobe PDF Reader as Enabled. Anything else I can check?
by bobmanc
Mon Mar 12, 2007 2:33 pm
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

It returns E_NOINTERFACE which I assume means I need the full version of Acrobat. Thats lame. Anybody know of another way?
by bobmanc
Mon Mar 12, 2007 1:33 pm
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

Just Reader. Is Acrobat required? If so is there another way to get a preview of a PDF?
by bobmanc
Sun Mar 11, 2007 7:28 pm
Forum: C++ Development
Topic: Problem with wxPDFMediaBackend
Replies: 15
Views: 3140

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 false...