Click here to Skip to main content
15,920,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL vector Pin
Mike Nordell2-Jun-03 22:18
Mike Nordell2-Jun-03 22:18 
GeneralDialog App Question Pin
Tom Wright2-Jun-03 11:20
Tom Wright2-Jun-03 11:20 
GeneralRe: Dialog App Question Pin
abc8762-Jun-03 11:40
abc8762-Jun-03 11:40 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 12:03
Tom Wright2-Jun-03 12:03 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 12:04
Tom Wright2-Jun-03 12:04 
GeneralRe: Dialog App Question Pin
User 66582-Jun-03 11:47
User 66582-Jun-03 11:47 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 11:56
Tom Wright2-Jun-03 11:56 
GeneralRe: Dialog App Question Pin
User 66582-Jun-03 12:42
User 66582-Jun-03 12:42 
Tom Wright wrote:
For instance in my OnInitDialog() before the return TRUE, I put PostMessage(WM_APP+1);

correct.

I haven't tested the next steps, but it should work:
Create a WindowProc for your CDialog-derived dialog with the class-wizard.
You could then check if the message is WM_APP+1. If it is, you simply call your function you want to execute. Example:
LRESULT CFavToHTMLDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
{
switch(message)
{
case WM_APP+1:
   YourFunction();
   break;
}

return CDialog::WindowProc(message, wParam, lParam);
}


regards

modified 12-Sep-18 21:01pm.

GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 12:21
Tom Wright2-Jun-03 12:21 
GeneralRe: Dialog App Question Pin
sunjohn2-Jun-03 18:44
sunjohn2-Jun-03 18:44 
GeneralDisplaying time for different time zones Pin
dennisV2-Jun-03 10:50
dennisV2-Jun-03 10:50 
GeneralRe: Displaying time for different time zones Pin
David Chamberlain3-Jun-03 3:56
David Chamberlain3-Jun-03 3:56 
GeneralRe: Displaying time for different time zones Pin
dennisV3-Jun-03 6:51
dennisV3-Jun-03 6:51 
GeneralRe: Displaying time for different time zones Pin
David Chamberlain3-Jun-03 7:10
David Chamberlain3-Jun-03 7:10 
GeneralRe: Displaying time for different time zones Pin
dennisV3-Jun-03 7:21
dennisV3-Jun-03 7:21 
Generalcreating a header blueprint that will be written to memory Pin
johnstonsk2-Jun-03 10:41
johnstonsk2-Jun-03 10:41 
General.rc files and encoding Pin
Jon Sagara2-Jun-03 10:09
Jon Sagara2-Jun-03 10:09 
GeneralCMenu question Pin
Anonymous2-Jun-03 9:59
Anonymous2-Jun-03 9:59 
GeneralRe: CMenu question Pin
Maximilien2-Jun-03 10:08
Maximilien2-Jun-03 10:08 
GeneralSerial Communication Problem Pin
GeneMcAulpin2-Jun-03 9:40
GeneMcAulpin2-Jun-03 9:40 
GeneralRe: Serial Communication Problem Pin
Roger Allen3-Jun-03 2:41
Roger Allen3-Jun-03 2:41 
QuestionHow to adapt window size to screen resolution Pin
gmlnd2-Jun-03 8:58
gmlnd2-Jun-03 8:58 
AnswerRe: How to adapt window size to screen resolution Pin
Dominik Reichl2-Jun-03 9:44
Dominik Reichl2-Jun-03 9:44 
GeneralRe: How to adapt window size to screen resolution Pin
gmlnd2-Jun-03 10:00
gmlnd2-Jun-03 10:00 
GeneralDisabling checkbox Pin
dorkshoe2-Jun-03 8:55
dorkshoe2-Jun-03 8:55 

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.