Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to unzip archive file in C/C++ Pin
Jon Sagara8-Jul-03 6:21
Jon Sagara8-Jul-03 6:21 
GeneralMysterious C++ behaviour Pin
RK_20008-Jul-03 6:01
RK_20008-Jul-03 6:01 
GeneralRe: Mysterious C++ behaviour Pin
Magnus Westin8-Jul-03 6:52
Magnus Westin8-Jul-03 6:52 
GeneralWM_KEYDOWN Events... Pin
Tintori Francesco8-Jul-03 5:09
Tintori Francesco8-Jul-03 5:09 
GeneralRe: WM_KEYDOWN Events... Pin
Mike Dimmick8-Jul-03 5:26
Mike Dimmick8-Jul-03 5:26 
GeneralRe: WM_KEYDOWN Events... Pin
Tintori Francesco8-Jul-03 5:39
Tintori Francesco8-Jul-03 5:39 
GeneralRe: WM_KEYDOWN Events... Pin
Rage8-Jul-03 5:55
professionalRage8-Jul-03 5:55 
GeneralRe: WM_KEYDOWN Events... Pin
Mike Dimmick8-Jul-03 5:56
Mike Dimmick8-Jul-03 5:56 
To decouple things a bit, you could have your subclassed edit control send a message back to its parent window, perhaps something in the WM_APP range (e.g. WM_APP + 1).

In the parent window class, you would then handle your WM_APP message using an ON_MESSAGE() entry in the message map. See MFC Technical Note 6[^] for more information about ON_MESSAGE.

To handle a custom message, your function should be prototyped as LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam).

As an alternative, you could do what the edit control normally does and send a WM_COMMAND message with a code you define (that doesn't clash with the normal edit control notification codes), the ID of your control (which you can get with GetDlgCtrlID) and the window handle of the control (m_hWnd). This does run the risk of potentially clashing with a Windows-defined message code in a future version of Windows. The existing codes are defined in WINUSER.H. If you go this way, handle the message with ON_CONTROL().

--
Mike Dimmick
GeneralRe: WM_KEYDOWN Events... Pin
Tintori Francesco8-Jul-03 6:01
Tintori Francesco8-Jul-03 6:01 
Generalgetting the path Pin
pnpfriend8-Jul-03 4:53
pnpfriend8-Jul-03 4:53 
GeneralRe: getting the path Pin
valikac8-Jul-03 5:30
valikac8-Jul-03 5:30 
GeneralRe: getting the path Pin
Joaquín M López Muñoz8-Jul-03 7:02
Joaquín M López Muñoz8-Jul-03 7:02 
GeneralRe: getting the path Pin
David Crow8-Jul-03 7:29
David Crow8-Jul-03 7:29 
GeneralWorking with files Pin
jales8-Jul-03 4:02
jales8-Jul-03 4:02 
GeneralRe: Working with files Pin
AlexO8-Jul-03 4:06
AlexO8-Jul-03 4:06 
GeneralRe: Working with files Pin
John M. Drescher8-Jul-03 4:13
John M. Drescher8-Jul-03 4:13 
GeneralRe: Working with files Pin
Rage8-Jul-03 5:57
professionalRage8-Jul-03 5:57 
GeneralRe: Working with files Pin
Magnus Westin8-Jul-03 6:38
Magnus Westin8-Jul-03 6:38 
GeneralRe: Working with files Pin
jales9-Jul-03 0:38
jales9-Jul-03 0:38 
GeneralRe: Working with files Pin
Magnus Westin9-Jul-03 6:56
Magnus Westin9-Jul-03 6:56 
GeneralRe: Working with files Pin
Ryan Binns8-Jul-03 7:23
Ryan Binns8-Jul-03 7:23 
QuestionHow to store a numeric value to *.mdb table from interface Pin
Anonymous8-Jul-03 3:53
Anonymous8-Jul-03 3:53 
AnswerRe: How to store a numeric value to *.mdb table from interface Pin
John M. Drescher8-Jul-03 4:05
John M. Drescher8-Jul-03 4:05 
GeneralAdd dynamic text to a Dialog Body Pin
keegan8-Jul-03 3:21
keegan8-Jul-03 3:21 
GeneralRe: Add dynamic text to a Dialog Body Pin
Cedric Moonen8-Jul-03 3:29
Cedric Moonen8-Jul-03 3:29 

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.