Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalascii coded hex ! Pin
peter ho13-Nov-02 13:28
peter ho13-Nov-02 13:28 
GeneralRe: ascii coded hex ! Pin
Chris Losinger13-Nov-02 13:37
professionalChris Losinger13-Nov-02 13:37 
GeneralCTabCtrl problems Pin
Anonymous13-Nov-02 13:28
Anonymous13-Nov-02 13:28 
Generaltime&date formatting Pin
mariuszpopiolek13-Nov-02 12:42
mariuszpopiolek13-Nov-02 12:42 
GeneralRe: time&date formatting Pin
dabs13-Nov-02 13:03
dabs13-Nov-02 13:03 
GeneralError using GetOpenFileName in debug version, and not in release Pin
Mario M13-Nov-02 12:04
Mario M13-Nov-02 12:04 
GeneralRe: Error using GetOpenFileName in debug version, and not in release- Solution Pin
Mario M13-Nov-02 17:40
Mario M13-Nov-02 17:40 
GeneralSubclassing.......heh heh heh Pin
nebbish13-Nov-02 11:58
nebbish13-Nov-02 11:58 
Hi ya'll,

I'm using MFC and I've got a class 'CMyComboBox' that I've derived from 'CComboBox'.

When I subclass a combobox that was created from a dialog template resource, all messages that were intended for the combobox's original windproc go through my message map now Smile | :) . I can at my discretion pass them along to the original windproc. I'm fine with all of this behavior so far.

Now let's suppose the user clicks the drop down arrow. A 'WM_LBUTTONDOWN' message comes through my message map FIRST. Now suppose that I ignore it and pass it along to the original windproc, and it determines that it's time to drop down the list box portion of the combo. A 'CBN_DROPDOWN' notification message is sent to my PARENT window (the dialog, a CWnd based dialog), SKIPPING my message map entirely. Also suppose the dialog's message map has no handler for this notification so it is reflected back to the combobox. ONLY THEN does my message map get a chance to handle this notification message Mad | :mad: .

I want my CMyComboBox classes message map to receive the notification messages from the original combobox's windproc BEFORE they go to the parent window. AND what if the parent window handles the notification instead of just reflecting it?? Then 'CMyComboBox's message map will never know ??? Frown | :(

does anybody know a way to receive notification messages from a subclassed window WITHOUT relying on reflection.

Part of my motivation is to port the control into an ATL activeX, and I'm not sure if the CWindow base class has all the same reflect functionality as MFC's CWnd base class.


thanks,
nebbish

Smart, Sexy, Sane. Pick two.

GeneralRe: Subclassing.......heh heh heh Pin
Joaquín M López Muñoz13-Nov-02 12:23
Joaquín M López Muñoz13-Nov-02 12:23 
Questionhow do you call updateallviews() from a dialog class? Pin
jack113-Nov-02 11:54
jack113-Nov-02 11:54 
AnswerRe: how do you call updateallviews() from a dialog class? Pin
valikac13-Nov-02 12:26
valikac13-Nov-02 12:26 
GeneralFrom primitive type to string Pin
S van Leent13-Nov-02 11:26
S van Leent13-Nov-02 11:26 
GeneralRe: From primitive type to string Pin
Joaquín M López Muñoz13-Nov-02 11:30
Joaquín M López Muñoz13-Nov-02 11:30 
GeneralRe: From primitive type to string Pin
S van Leent14-Nov-02 5:18
S van Leent14-Nov-02 5:18 
GeneralRe: From primitive type to string Pin
Joaquín M López Muñoz14-Nov-02 7:33
Joaquín M López Muñoz14-Nov-02 7:33 
GeneralRe: From primitive type to string Pin
S van Leent14-Nov-02 12:01
S van Leent14-Nov-02 12:01 
GeneralDo I need to delete a CArray Pin
Code4Food13-Nov-02 11:22
Code4Food13-Nov-02 11:22 
GeneralRe: Do I need to delete a CArray Pin
Joaquín M López Muñoz13-Nov-02 11:32
Joaquín M López Muñoz13-Nov-02 11:32 
GeneralRe: Do I need to delete a CArray Pin
Code4Food13-Nov-02 11:38
Code4Food13-Nov-02 11:38 
GeneralRe: Do I need to delete a CArray Pin
Joaquín M López Muñoz13-Nov-02 11:47
Joaquín M López Muñoz13-Nov-02 11:47 
GeneralRe: Do I need to delete a CArray Pin
Code4Food13-Nov-02 11:56
Code4Food13-Nov-02 11:56 
GeneralRe: Do I need to delete a CArray Pin
Christian Graus13-Nov-02 12:11
protectorChristian Graus13-Nov-02 12:11 
GeneralRe: Do I need to delete a CArray Pin
Joaquín M López Muñoz13-Nov-02 12:16
Joaquín M López Muñoz13-Nov-02 12:16 
GeneralRe: Do I need to delete a CArray Pin
Christian Graus13-Nov-02 12:38
protectorChristian Graus13-Nov-02 12:38 
GeneralRe: Do I need to delete a CArray Pin
Code4Food13-Nov-02 12:27
Code4Food13-Nov-02 12:27 

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.