Click here to Skip to main content
15,906,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call a Dialod's method from other class (sameone could help me?) Pin
Martin_Viet16-Apr-03 3:52
Martin_Viet16-Apr-03 3:52 
QuestionHow to send message Pin
Zygmunt15-Apr-03 5:40
Zygmunt15-Apr-03 5:40 
AnswerRe: How to send message Pin
valikac15-Apr-03 6:48
valikac15-Apr-03 6:48 
GeneralRe: How to send message Pin
Martin_Viet15-Apr-03 7:03
Martin_Viet15-Apr-03 7:03 
GeneralApp argument :o) Pin
MemLeak15-Apr-03 5:18
MemLeak15-Apr-03 5:18 
GeneralRe: App argument :o) Pin
Joaquín M López Muñoz15-Apr-03 5:33
Joaquín M López Muñoz15-Apr-03 5:33 
GeneralRe: App argument :o) Pin
Jim Crafton15-Apr-03 7:53
Jim Crafton15-Apr-03 7:53 
GeneralMessage Trapping Pin
BtySgtMajor15-Apr-03 4:41
BtySgtMajor15-Apr-03 4:41 
have an app which, upon starting, creates a splitter window. One of the two panes (call it the one on the right) is simply a CFrameWnd. However, at a later time (specifically when the user clicks on something in the left pane), the CFrameWnd in the right pane is supposed to be used to house a CFormView. The initialization code (ie. the code to setup the new right pane) is called from within the left pane's code. Now, the form view shows up just fine; however, I don't seem to be receiving any events. For example, if I click on an edit box, it never receives the focus. If I click anywhere on the form, it doesn't receive the event, etc. I don't know if it matters if the CEdit controls are created dynamically on the form view or not...I did something similar to this before, but for some reason, this time around I'm not getting any events.

The form view itself is setup/created in a separate COM object. So, the calling code (from the left pane) is basically:

iCOMObj->initView(pParent); // pParent is the right pane's frame
pParent->SetActiveView(...);
pParent->RecalcLayout();


and within the actual COM DLL (ie. the initView method):

// since the COM object is a derivative of CFormView, we call
// Create (using pParent as its parent) to set this up
Create(...);
ShowWindow(SW_SHOW);
SetDlgCtrlID(AFX_IDW_PANE_FIRST);


...now, I'm not sure if this is the right way to do it, but the form does show up. It's just the messages that don't seem to be trapped. Is there a correct "order" to do this kind of thing in, given that the actual form is in a separate DLL?

Any suggestions/help? Thanks a bunch guys!
GeneralRe: Message Trapping Pin
G. Steudtel15-Apr-03 5:27
G. Steudtel15-Apr-03 5:27 
GeneralRe: Message Trapping Pin
BtySgtMajor15-Apr-03 5:41
BtySgtMajor15-Apr-03 5:41 
GeneralTime Zone Pin
Mazdak15-Apr-03 4:16
Mazdak15-Apr-03 4:16 
GeneralRe: Time Zone Pin
David Crow15-Apr-03 4:31
David Crow15-Apr-03 4:31 
GeneralRe: Time Zone Pin
peterchen15-Apr-03 4:58
peterchen15-Apr-03 4:58 
GeneralRe: Time Zone Pin
JT Anderson15-Apr-03 5:00
JT Anderson15-Apr-03 5:00 
GeneralHowto get CPU load Pin
Bluescreen200315-Apr-03 3:35
Bluescreen200315-Apr-03 3:35 
GeneralRe: Howto get CPU load Pin
Chris Richardson15-Apr-03 8:20
Chris Richardson15-Apr-03 8:20 
Generalowner of a file Pin
naradaji15-Apr-03 3:34
naradaji15-Apr-03 3:34 
GeneralRe: owner of a file Pin
David Crow15-Apr-03 4:36
David Crow15-Apr-03 4:36 
GeneralRe: owner of a file Pin
naradaji15-Apr-03 4:46
naradaji15-Apr-03 4:46 
GeneralQuestion about istringstream.getline method. Pin
George215-Apr-03 2:50
George215-Apr-03 2:50 
GeneralRe: Question about istringstream.getline method. Pin
valikac15-Apr-03 6:50
valikac15-Apr-03 6:50 
GeneralRe: Question about istringstream.getline method. Pin
George215-Apr-03 16:04
George215-Apr-03 16:04 
GeneralOnInitialUpdate and CFormView problems Pin
Ceri15-Apr-03 2:39
Ceri15-Apr-03 2:39 
QuestionChange Parent? Pin
catchnine15-Apr-03 2:06
catchnine15-Apr-03 2:06 
GeneralGetting function declarations out of a .lib Pin
John Oliver15-Apr-03 1:46
John Oliver15-Apr-03 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.