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

C / C++ / MFC

 
AnswerRe: MFC menu issues Pin
Bob Stanneveld5-Oct-05 10:40
Bob Stanneveld5-Oct-05 10:40 
GeneralRe: MFC menu issues Pin
LighthouseJ5-Oct-05 10:52
LighthouseJ5-Oct-05 10:52 
GeneralRe: MFC menu issues (update) Pin
LighthouseJ5-Oct-05 11:56
LighthouseJ5-Oct-05 11:56 
AnswerRe: MFC menu issues Pin
Bartosz Bien5-Oct-05 11:57
Bartosz Bien5-Oct-05 11:57 
GeneralRe: MFC menu issues Pin
LighthouseJ5-Oct-05 12:32
LighthouseJ5-Oct-05 12:32 
AnswerRe: MFC menu issues Pin
Jose Lamas Rios5-Oct-05 18:35
Jose Lamas Rios5-Oct-05 18:35 
QuestionFile Change Event CDialog Pin
picazo5-Oct-05 10:01
picazo5-Oct-05 10:01 
AnswerRe: File Change Event CDialog Pin
Blake V. Miller5-Oct-05 10:28
Blake V. Miller5-Oct-05 10:28 
Do the file change notificaiton/waiting in a secodnary thread. Post messages to your main thread. Process those messages in the main thread. Don't try ot directly update controls from the secodnary thread which processed the file notification. You can look into ON_REGISTERED_MESSAGE.

// example for ON_REGISTERED_MESSAGE
const UINT wm_Find = RegisterWindowMessage( FINDMSGSTRING );
BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass )
ON_REGISTERED_MESSAGE( wm_Find, OnFind )
// ... Possibly more entries to handle additional messages
END_MESSAGE_MAP( )

Post the registered message fromt he notiifcaiton thread. When the main dialog receives it, then call the updatedata.
This should work fine for you.


QuestionThe thread 0x6B8 has exited with code 2 (0x2). Pin
valerie995-Oct-05 9:25
valerie995-Oct-05 9:25 
AnswerRe: The thread 0x6B8 has exited with code 2 (0x2). Pin
Blake V. Miller5-Oct-05 10:25
Blake V. Miller5-Oct-05 10:25 
GeneralRe: The thread 0x6B8 has exited with code 2 (0x2). Pin
QueenAzula26-Jun-23 2:17
QueenAzula26-Jun-23 2:17 
QuestionIs it possible to make asynchronous callback in win32 PRC? Pin
Coal Station5-Oct-05 8:46
Coal Station5-Oct-05 8:46 
QuestionComputing thread stack size Pin
Zykalus5-Oct-05 8:31
Zykalus5-Oct-05 8:31 
AnswerRe: Computing thread stack size Pin
Shog95-Oct-05 10:20
sitebuilderShog95-Oct-05 10:20 
GeneralRe: Computing thread stack size Pin
Blake V. Miller5-Oct-05 10:33
Blake V. Miller5-Oct-05 10:33 
GeneralRe: Computing thread stack size Pin
Shog95-Oct-05 11:09
sitebuilderShog95-Oct-05 11:09 
GeneralRe: Computing thread stack size Pin
Zykalus5-Oct-05 15:35
Zykalus5-Oct-05 15:35 
GeneralRe: Computing thread stack size Pin
Shog95-Oct-05 16:02
sitebuilderShog95-Oct-05 16:02 
AnswerRe: Computing thread stack size Pin
Blake V. Miller5-Oct-05 10:37
Blake V. Miller5-Oct-05 10:37 
GeneralRe: Computing thread stack size Pin
Zykalus5-Oct-05 11:03
Zykalus5-Oct-05 11:03 
GeneralRe: Computing thread stack size Pin
Gary R. Wheeler9-Oct-05 4:54
Gary R. Wheeler9-Oct-05 4:54 
QuestionTo fire a button click event programmatically Pin
Liu Shuai5-Oct-05 8:05
Liu Shuai5-Oct-05 8:05 
AnswerRe: To fire a button click event programmatically Pin
Jose Lamas Rios5-Oct-05 9:48
Jose Lamas Rios5-Oct-05 9:48 
GeneralRe: To fire a button click event programmatically Pin
Liu Shuai5-Oct-05 10:09
Liu Shuai5-Oct-05 10:09 
GeneralRe: To fire a button click event programmatically Pin
shweta yadaki9-Dec-13 19:11
shweta yadaki9-Dec-13 19:11 

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.