Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question#pragma once? Pin
Link26002-Nov-04 15:03
Link26002-Nov-04 15:03 
AnswerRe: #pragma once? Pin
Maximilien2-Nov-04 15:39
Maximilien2-Nov-04 15:39 
AnswerRe: #pragma once? Pin
Henry miller3-Nov-04 2:51
Henry miller3-Nov-04 2:51 
GeneralHelp CxImage Drawing Problems! Pin
Zero_divide_12-Nov-04 15:02
Zero_divide_12-Nov-04 15:02 
GeneralDifference between OnOk() and EndDialog Pin
Don122-Nov-04 13:12
Don122-Nov-04 13:12 
GeneralRe: Difference between OnOk() and EndDialog Pin
Christian Graus2-Nov-04 13:28
protectorChristian Graus2-Nov-04 13:28 
GeneralRe: Difference between OnOk() and EndDialog Pin
Yulianto.2-Nov-04 13:39
Yulianto.2-Nov-04 13:39 
GeneralRe: Difference between OnOk() and EndDialog Pin
Jack Puppy2-Nov-04 13:44
Jack Puppy2-Nov-04 13:44 
Calling CDialog::OnOK performs any data validation, then calls EndDialog with the result IDOK, so it essentially simulates a user clicking the OK button.

Depending on the situation, you may want to use OnCancel instead. It skips the data validation, and simply calls EndDialog with the result IDCANCEL.

(The IDOK/IDCANCEL values are what's returned from the DoModal function)

To close an app:

AfxGetMainWnd()->PostMessage(WM_CLOSE);


Pssst. You see that little light on your monitor? That's actually a spy camera, and I'm tracking your every move...
QuestionResolution independent programming? Pin
bitpusher2-Nov-04 13:08
bitpusher2-Nov-04 13:08 
AnswerRe: Resolution independent programming? Pin
Sujan Christo2-Nov-04 19:45
Sujan Christo2-Nov-04 19:45 
GeneralInstallation package Pin
lillah2-Nov-04 12:47
lillah2-Nov-04 12:47 
GeneralRe: Installation package Pin
Brad Bruce2-Nov-04 13:16
Brad Bruce2-Nov-04 13:16 
GeneralRe: Installation package Pin
lillah2-Nov-04 13:44
lillah2-Nov-04 13:44 
GeneralRe: Installation package Pin
Brad Bruce2-Nov-04 15:40
Brad Bruce2-Nov-04 15:40 
GeneralRe: Installation package Pin
ThatsAlok3-Nov-04 23:37
ThatsAlok3-Nov-04 23:37 
Generalgetting the divider handle in a SplitterWnd Pin
b@andreasen8.org2-Nov-04 11:53
b@andreasen8.org2-Nov-04 11:53 
Generalsome help for how shutdown computer remotely Pin
faroqtam2-Nov-04 11:25
faroqtam2-Nov-04 11:25 
GeneralRe: some help for how shutdown computer remotely Pin
Graham Bradshaw2-Nov-04 11:50
Graham Bradshaw2-Nov-04 11:50 
GeneralRe: some help for how shutdown computer remotely Pin
Christian Graus2-Nov-04 11:50
protectorChristian Graus2-Nov-04 11:50 
Generallogging off windows 2000 in VC++ Pin
jet91532-Nov-04 9:49
jet91532-Nov-04 9:49 
GeneralRe: logging off windows 2000 in VC++ Pin
David Crow2-Nov-04 10:39
David Crow2-Nov-04 10:39 
GeneralRe: logging off windows 2000 in VC++ Pin
Ryan Binns2-Nov-04 16:58
Ryan Binns2-Nov-04 16:58 
Generala dynamic-link library for 3D GameStudio Pin
BeyelerStudios2-Nov-04 9:47
BeyelerStudios2-Nov-04 9:47 
GeneralAbout scrollbars Pin
n_a12-Nov-04 8:43
n_a12-Nov-04 8:43 
GeneralRe: About scrollbars Pin
n_a12-Nov-04 23:14
n_a12-Nov-04 23:14 

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.