Click here to Skip to main content
16,004,761 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can I make password to my prog. Pin
Ritu Kwatra20-Jun-05 18:26
Ritu Kwatra20-Jun-05 18:26 
GeneralRe: how can I make password to my prog. Pin
ThatsAlok20-Jun-05 18:46
ThatsAlok20-Jun-05 18:46 
AnswerRe: how can I make password to my prog. Pin
namaskaaram20-Jun-05 20:15
namaskaaram20-Jun-05 20:15 
GeneralRe: how can I make password to my prog. Pin
suroor45321-Jun-05 1:48
suroor45321-Jun-05 1:48 
GeneralLaunch Applications directly from Embedded Resources Pin
Member 269513020-Jun-05 10:03
Member 269513020-Jun-05 10:03 
GeneralRe: Launch Applications directly from Embedded Resources Pin
Steve Maier20-Jun-05 10:29
professionalSteve Maier20-Jun-05 10:29 
GeneralOnInitDialog query Pin
Sonix20-Jun-05 9:36
Sonix20-Jun-05 9:36 
GeneralRe: OnInitDialog query Pin
David Crow20-Jun-05 9:42
David Crow20-Jun-05 9:42 
Here's one way:

#define UWM_SOMETHING (WM_APP + 1234)
 
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
    //{{AFX_MSG_MAP(CMyDialog)
    // NOTE: the ClassWizard will add message map macros here
    //}}AFX_MSG_MAP
    ON_MESSAGE(UWM_SOMETHING, OnSomething)
END_MESSAGE_MAP()
 
BOOL CMyDialog::OnInitDialog()
{
    CDialog::OnInitDialog();
    ...
    PostMessage(UWM_SOMETHING);
    return TRUE;
}
 
LRESULT CMyDialog::OnSomething( WPARAM, LPARAM )
{
    // do your stuff in here.  if it's CPU intensive, consider a
    // separate thread
    return 1;
}



"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: OnInitDialog query Pin
Sonix20-Jun-05 9:50
Sonix20-Jun-05 9:50 
GeneralRe: OnInitDialog query Pin
David Crow20-Jun-05 9:56
David Crow20-Jun-05 9:56 
GeneralRe: OnInitDialog query Pin
20-Jun-05 10:05
suss20-Jun-05 10:05 
GeneralRe: OnInitDialog query Pin
FlyingTinman20-Jun-05 10:10
FlyingTinman20-Jun-05 10:10 
GeneralRe: OnInitDialog query Pin
Andrew Kirillov20-Jun-05 10:38
Andrew Kirillov20-Jun-05 10:38 
GeneralRe: OnInitDialog query Pin
Trollslayer20-Jun-05 13:14
mentorTrollslayer20-Jun-05 13:14 
Questionsimple keyboard input ? Pin
bitsNbites20-Jun-05 9:04
bitsNbites20-Jun-05 9:04 
AnswerRe: simple keyboard input ? Pin
Alexander M.,20-Jun-05 9:25
Alexander M.,20-Jun-05 9:25 
AnswerRe: simple keyboard input ? Pin
David Crow20-Jun-05 9:45
David Crow20-Jun-05 9:45 
AnswerRe: simple keyboard input ? Pin
Andrew Walker20-Jun-05 14:03
Andrew Walker20-Jun-05 14:03 
AnswerRe: simple keyboard input ? Pin
ng kok chuan20-Jun-05 17:25
ng kok chuan20-Jun-05 17:25 
GeneralRe: simple keyboard input ? Pin
bitsNbites20-Jun-05 18:06
bitsNbites20-Jun-05 18:06 
GeneralRe: simple keyboard input ? Pin
ng kok chuan20-Jun-05 21:33
ng kok chuan20-Jun-05 21:33 
GeneralRe: simple keyboard input ? Pin
bitsNbites21-Jun-05 4:59
bitsNbites21-Jun-05 4:59 
GeneralRe: simple keyboard input ? Pin
ng kok chuan21-Jun-05 16:40
ng kok chuan21-Jun-05 16:40 
GeneralRe: simple keyboard input ? Pin
bitsNbites22-Jun-05 4:13
bitsNbites22-Jun-05 4:13 
GeneralRe: simple keyboard input ? Pin
David Crow21-Jun-05 5:27
David Crow21-Jun-05 5: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.