Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: first click on listctrl does not call OnNMClick Pin
danara10-Feb-06 0:43
danara10-Feb-06 0:43 
AnswerRe: first click on listctrl does not call OnNMClick Pin
Rage10-Feb-06 1:31
professionalRage10-Feb-06 1:31 
QuestionPOP3 MESSAGE PARSER Pin
shadrach_india9-Feb-06 21:57
shadrach_india9-Feb-06 21:57 
AnswerRe: POP3 MESSAGE PARSER Pin
markkuk9-Feb-06 22:36
markkuk9-Feb-06 22:36 
Questionterminating, susending/resuming thread ... a little complex issue Pin
omairaftab9-Feb-06 21:09
omairaftab9-Feb-06 21:09 
AnswerRe: terminating, susending/resuming thread ... a little complex issue Pin
Bob Stanneveld9-Feb-06 23:34
Bob Stanneveld9-Feb-06 23:34 
AnswerRe: terminating, susending/resuming thread ... a little complex issue Pin
Rage10-Feb-06 1:27
professionalRage10-Feb-06 1:27 
AnswerRe: terminating, susending/resuming thread ... a little complex issue Pin
Stephen Hewitt11-Feb-06 0:36
Stephen Hewitt11-Feb-06 0:36 
QuestionClass view is not showing the whole classes in my project Pin
BiswaR9-Feb-06 21:06
BiswaR9-Feb-06 21:06 
AnswerRe: Class view is not showing the whole classes in my project Pin
_anil_9-Feb-06 21:11
_anil_9-Feb-06 21: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.