Click here to Skip to main content
15,901,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAdding new window to SDI Application Pin
Anu_Bala9-Feb-06 23:16
Anu_Bala9-Feb-06 23:16 
QuestionA new window in SDI Pin
Anu_Bala9-Feb-06 23:09
Anu_Bala9-Feb-06 23:09 
AnswerRe: A new window in SDI Pin
Rage10-Feb-06 2:49
professionalRage10-Feb-06 2:49 
QuestionAutomation for MS word Pin
KongHL9-Feb-06 22:39
KongHL9-Feb-06 22:39 
Questionclass view of project work space is not showing all the classes Pin
BiswaR9-Feb-06 22:34
BiswaR9-Feb-06 22:34 
AnswerRe: class view of project work space is not showing all the classes Pin
Maxwell Chen9-Feb-06 22:38
Maxwell Chen9-Feb-06 22:38 
GeneralRe: class view of project work space is not showing all the classes Pin
BiswaR9-Feb-06 23:08
BiswaR9-Feb-06 23:08 
GeneralRe: class view of project work space is not showing all the classes Pin
_anil_9-Feb-06 23:43
_anil_9-Feb-06 23:43 
GeneralRe: class view of project work space is not showing all the classes Pin
BiswaR10-Feb-06 0:15
BiswaR10-Feb-06 0:15 
GeneralRe: class view of project work space is not showing all the classes Pin
toxcct10-Feb-06 1:35
toxcct10-Feb-06 1:35 
AnswerRe: class view of project work space is not showing all the classes Pin
_anil_9-Feb-06 22:58
_anil_9-Feb-06 22:58 
QuestionContactless Smart Card library for programming with VC++ ? Pin
Maxwell Chen9-Feb-06 22:33
Maxwell Chen9-Feb-06 22:33 
QuestionClose a dialog from OnInitDialog Pin
peterchen9-Feb-06 22:32
peterchen9-Feb-06 22:32 
AnswerRe: Close a dialog from OnInitDialog Pin
Maxwell Chen9-Feb-06 22:43
Maxwell Chen9-Feb-06 22:43 
AnswerRe: Close a dialog from OnInitDialog Pin
toxcct9-Feb-06 23:37
toxcct9-Feb-06 23:37 
GeneralRe: Close a dialog from OnInitDialog Pin
ThatsAlok10-Feb-06 0:14
ThatsAlok10-Feb-06 0:14 
GeneralRe: Close a dialog from OnInitDialog Pin
toxcct10-Feb-06 0:16
toxcct10-Feb-06 0:16 
AnswerRe: Close a dialog from OnInitDialog Pin
ThatsAlok10-Feb-06 0:33
ThatsAlok10-Feb-06 0:33 
toxcct wrote:
but tell me why it doen't work ?


I am sorry, it does work:-
here is what MSDN says about EndDialog :-
A dialog box procedure can call EndDialog at any time, even during the processing of the WM_INITDIALOG message. If your application calls the function while WM_INITDIALOG is being processed, the dialog box is destroyed before it is shown and before the input focus is set. 

EndDialog does not destroy the dialog box immediately. Instead, it sets a flag and allows the dialog box procedure to return control to the system. The system checks the flag before attempting to retrieve the next message from the application queue. If the flag is set, the system ends the message loop, destroys the dialog box, and uses the value in nResult as the return value from the function that created the dialog box. 


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
GeneralRe: Close a dialog from OnInitDialog Pin
toxcct10-Feb-06 0:36
toxcct10-Feb-06 0:36 
GeneralRe: Close a dialog from OnInitDialog Pin
ThatsAlok10-Feb-06 0:44
ThatsAlok10-Feb-06 0:44 
GeneralRe: Close a dialog from OnInitDialog Pin
toxcct10-Feb-06 1:32
toxcct10-Feb-06 1:32 
GeneralRe: Close a dialog from OnInitDialog Pin
ThatsAlok13-Feb-06 21:29
ThatsAlok13-Feb-06 21:29 
AnswerRe: Close a dialog from OnInitDialog Pin
ThatsAlok10-Feb-06 0:07
ThatsAlok10-Feb-06 0:07 
Questionfirst click on listctrl does not call OnNMClick Pin
danara9-Feb-06 22:21
danara9-Feb-06 22:21 
AnswerRe: first click on listctrl does not call OnNMClick Pin
ThatsAlok10-Feb-06 0:38
ThatsAlok10-Feb-06 0:38 

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.