Click here to Skip to main content
15,926,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can sure other thread receive my data in a busy thread. Pin
Niklas L10-Sep-01 3:27
Niklas L10-Sep-01 3:27 
GeneralHatching... Pin
Manikandan10-Sep-01 1:59
Manikandan10-Sep-01 1:59 
GeneralRe: Hatching... Pin
Joaquín M López Muñoz10-Sep-01 8:46
Joaquín M López Muñoz10-Sep-01 8:46 
Generalcombobox::getitemtext Pin
10-Sep-01 1:45
suss10-Sep-01 1:45 
GeneralRe: combobox::getitemtext Pin
Ivan A Eryshov10-Sep-01 3:05
Ivan A Eryshov10-Sep-01 3:05 
GeneralRe: combobox::getitemtext Pin
10-Sep-01 3:11
suss10-Sep-01 3:11 
GeneralRe: combobox::getitemtext Pin
10-Sep-01 3:19
suss10-Sep-01 3:19 
GeneralCRichEditCtrl: message handling Pin
10-Sep-01 1:19
suss10-Sep-01 1:19 
I have a CRichEditCtrl in a CView class. I need to know when the control gets the focus and I don't know how to do it.

This is what I've done so far:

//On MyView.h
afx_msg void OnStupidCtrlGetFocus(NMHDR* pNMHDR, LRESULT* pResult);

//On MyView.cpp
ON_NOTIFY(NM_SETFOCUS, ID_STUPIDRICHEDITCTRL, OnStupidCtrlGetFocus)

void CMyView::OnStupidCtrlGetFocus(NMHDR* pNMHDR, LRESULT* pResult)
{
//Do some work
}

But it doesn't work !!! what am I doing wrong ????
Thanks in advance..
QuestionHow do I ensure a unique ID for my dynamically created button? Pin
Tommy H D Svensson10-Sep-01 1:07
Tommy H D Svensson10-Sep-01 1:07 
AnswerRe: How do I ensure a unique ID for my dynamically created button? Pin
XKent10-Sep-01 1:28
XKent10-Sep-01 1:28 
GeneralRe: How do I ensure a unique ID for my dynamically created button? Pin
10-Sep-01 1:53
suss10-Sep-01 1:53 
GeneralRe: How do I ensure a unique ID for my dynamically created button? Pin
Tommy H D Svensson10-Sep-01 2:33
Tommy H D Svensson10-Sep-01 2:33 
GeneralRe: How do I ensure a unique ID for my dynamically created button? Pin
XKent10-Sep-01 8:24
XKent10-Sep-01 8:24 
GeneralRe: How do I ensure a unique ID for my dynamically created button? Pin
Tommy H D Svensson11-Sep-01 0:10
Tommy H D Svensson11-Sep-01 0:10 
GeneralRe: How do I ensure a unique ID for my dynamically created button? Pin
Tommy H D Svensson13-Sep-01 21:36
Tommy H D Svensson13-Sep-01 21:36 
GeneralConverting to AVI Pin
John Crystal10-Sep-01 0:29
John Crystal10-Sep-01 0:29 
GeneralRe: Converting to AVI Pin
Christian Graus10-Sep-01 0:52
protectorChristian Graus10-Sep-01 0:52 
Questionhow to trap keys while entering text in edit control of combobox ?? Pin
Narendra_bt10-Sep-01 0:15
Narendra_bt10-Sep-01 0:15 
GeneralUnicode using. Pin
9-Sep-01 23:52
suss9-Sep-01 23:52 
GeneralPutting value in stored Procedure before execute ADO Pin
Bigge9-Sep-01 23:30
Bigge9-Sep-01 23:30 
QuestionHow I can notify Caret position changes in CEdit? Pin
XKent9-Sep-01 21:58
XKent9-Sep-01 21:58 
GeneralLoad DLL in program Pin
Irfan Ahmed9-Sep-01 20:58
Irfan Ahmed9-Sep-01 20:58 
GeneralRe: Load DLL in program Pin
Michael Dunn9-Sep-01 21:06
sitebuilderMichael Dunn9-Sep-01 21:06 
GeneralRe: Load DLL in program Pin
Irfan Ahmed9-Sep-01 21:15
Irfan Ahmed9-Sep-01 21:15 
GeneralRe: Load DLL in program Pin
Ben M. Stokland9-Sep-01 21:32
Ben M. Stokland9-Sep-01 21:32 

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.