Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHBITMAP to picture control Pin
cherrymotion1-Sep-08 6:42
cherrymotion1-Sep-08 6:42 
AnswerRe: HBITMAP to picture control Pin
Ștefan-Mihai MOGA1-Sep-08 8:06
professionalȘtefan-Mihai MOGA1-Sep-08 8:06 
AnswerRe: HBITMAP to picture control Pin
Mark Salsbery1-Sep-08 11:34
Mark Salsbery1-Sep-08 11:34 
GeneralRe: HBITMAP to picture control Pin
cherrymotion1-Sep-08 19:59
cherrymotion1-Sep-08 19:59 
GeneralRe: HBITMAP to picture control Pin
cherrymotion2-Sep-08 2:30
cherrymotion2-Sep-08 2:30 
GeneralRe: HBITMAP to picture control Pin
Mark Salsbery2-Sep-08 6:59
Mark Salsbery2-Sep-08 6:59 
QuestionHiding a Dialog application on first run Pin
AmitCohen2221-Sep-08 4:50
AmitCohen2221-Sep-08 4:50 
AnswerRe: Hiding a Dialog application on first run Pin
Perspx1-Sep-08 5:00
Perspx1-Sep-08 5:00 
The reason is, because as stated by the documentation on MSDN, OnInitDialog() is sent to the dialog box during the Create, CreateIndirect, or DoModal calls, which occur immediately before the dialog box is displayed, therefore if you call ShowWindow(SW_HIDE) then the window will be shown after OnInitDialog() returns.

To solve this you should create your dialog without the WS_VISIBLE style.

Regards,
--Perspx

"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia

Introduction to Object-Oriented JavaScript

GeneralRe: Hiding a Dialog application on first run Pin
AmitCohen2221-Sep-08 19:54
AmitCohen2221-Sep-08 19:54 
GeneralRe: Hiding a Dialog application on first run Pin
Perspx1-Sep-08 20:04
Perspx1-Sep-08 20:04 
GeneralRe: Hiding a Dialog application on first run Pin
AmitCohen2222-Sep-08 3:26
AmitCohen2222-Sep-08 3:26 
AnswerRe: Hiding a Dialog application on first run Pin
Hamid_RT1-Sep-08 6:32
Hamid_RT1-Sep-08 6:32 
AnswerRe: Hiding a Dialog application on first run Pin
David Crow1-Sep-08 15:38
David Crow1-Sep-08 15:38 
QuestionChanging the IP address of PC from my application Pin
jimjim7331-Sep-08 4:11
jimjim7331-Sep-08 4:11 
AnswerRe: Changing the IP address of PC from my application Pin
David Crow1-Sep-08 4:16
David Crow1-Sep-08 4:16 
QuestionAdvanced visual studio C++ debugging? Pin
MeNot1-Sep-08 3:46
MeNot1-Sep-08 3:46 
QuestionRe: Advanced visual studio C++ debugging? Pin
Mark Salsbery1-Sep-08 11:37
Mark Salsbery1-Sep-08 11:37 
AnswerRe: Advanced visual studio C++ debugging? Pin
Rostfrei1-Sep-08 23:25
Rostfrei1-Sep-08 23:25 
QuestionRe: Advanced visual studio C++ debugging? Pin
Mark Salsbery2-Sep-08 6:52
Mark Salsbery2-Sep-08 6:52 
QuestionCoClass name issues Pin
George_George1-Sep-08 3:03
George_George1-Sep-08 3:03 
QuestionHow to get length of a pointer byte array and how to add elements at the end of pointer byte array? Pin
kapardhi1-Sep-08 2:53
kapardhi1-Sep-08 2:53 
AnswerRe: How to get length of a pointer byte array and how to add elements at the end of pointer byte array? Pin
Roger Stoltz1-Sep-08 3:49
Roger Stoltz1-Sep-08 3:49 
Questionproblem in linking bluetooth related header files in VC++ Pin
manju23reddy1-Sep-08 2:37
manju23reddy1-Sep-08 2:37 
QuestionRe: problem in linking bluetooth related header files in VC++ Pin
_AnsHUMAN_ 1-Sep-08 2:44
_AnsHUMAN_ 1-Sep-08 2:44 
AnswerRe: problem in linking bluetooth related header files in VC++ Pin
manju23reddy1-Sep-08 3:21
manju23reddy1-Sep-08 3:21 

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.