Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Compiler not generating code [modified] Pin
Rajkumar R18-May-08 21:30
Rajkumar R18-May-08 21:30 
GeneralRe: Compiler not generating code Pin
ForNow18-May-08 22:37
ForNow18-May-08 22:37 
AnswerRe: Compiler not generating code Pin
Rajkumar R18-May-08 22:48
Rajkumar R18-May-08 22:48 
GeneralRe: Compiler not generating code Pin
ForNow19-May-08 0:40
ForNow19-May-08 0:40 
QuestionInitial Window Size for Program Pin
Kwanalouie18-May-08 7:29
Kwanalouie18-May-08 7:29 
AnswerRe: Initial Window Size for Program Pin
Nelek18-May-08 12:41
protectorNelek18-May-08 12:41 
GeneralRe: Initial Window Size for Program Pin
Paresh Chitte18-May-08 19:32
Paresh Chitte18-May-08 19:32 
GeneralRe: Initial Window Size for Program [modified] Pin
Nelek18-May-08 21:30
protectorNelek18-May-08 21:30 
From the link you gave me:

<br />
the first time ShowWindow is called, the value should be the value obtained by the WinMain function in its nCmdShow parameter. <br />
In subsequent calls, this parameter can be one of the following values. <br />
SW_FORCEMINIMIZE<br />
Windows 2000/XP: Minimizes a window, even if the thread that owns the window is not responding. <br />
This flag should only be used when minimizing windows from a different thread.<br />
SW_HIDE<br />
..<br />
..<br />
..<br />


So this InitInstance is the first time it is called so it should be not replaced or overwritten because the WinMain function sets the nCmdShow. And I don't want to make it other, I just want to add the Maximized flag.

By the way, I already tried pMainFrame->ShowWindow(SW_SHOWMAXIMIZED); and it was not working for me, more than 3 hours searching for examples and infos in MSDN and the web. So I guess that:
m_nCmdShow = SW_SHOWMAXIMIZED;
pMainFrame->ShowWindow (m_nCmdShow);


is going to have the same problems.

I am not saying that you are not right, but as I used it... works as well.

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

modified on Tuesday, May 20, 2008 4:46 PM

GeneralRe: Initial Window Size for Program Pin
Nelek18-May-08 21:39
protectorNelek18-May-08 21:39 
AnswerRe: Initial Window Size for Program Pin
Hamid_RT18-May-08 18:22
Hamid_RT18-May-08 18:22 
AnswerRe: Initial Window Size for Program Pin
Paresh Chitte18-May-08 19:13
Paresh Chitte18-May-08 19:13 
QuestionHow do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Larry Mills Sr18-May-08 5:46
Larry Mills Sr18-May-08 5:46 
AnswerRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Nelek18-May-08 7:24
protectorNelek18-May-08 7:24 
GeneralRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Larry Mills Sr18-May-08 9:34
Larry Mills Sr18-May-08 9:34 
GeneralRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Michael Schubert18-May-08 12:20
Michael Schubert18-May-08 12:20 
GeneralRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Nelek18-May-08 12:39
protectorNelek18-May-08 12:39 
QuestionRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
David Crow19-May-08 4:41
David Crow19-May-08 4:41 
AnswerRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Larry Mills Sr19-May-08 16:43
Larry Mills Sr19-May-08 16:43 
QuestionDrawing a bitmap on DC created by BYTE* array Pin
TalSt18-May-08 3:29
TalSt18-May-08 3:29 
AnswerRe: Drawing a bitmap on DC created by BYTE* array [modified] Pin
Baltoro18-May-08 12:20
Baltoro18-May-08 12:20 
AnswerRe: Drawing a bitmap on DC created by BYTE* array Pin
Dan18-May-08 13:31
Dan18-May-08 13:31 
AnswerRe: Drawing a bitmap on DC created by BYTE* array Pin
TalSt18-May-08 19:27
TalSt18-May-08 19:27 
Questionfile accessing problem Pin
Chandrasekharan P18-May-08 3:26
Chandrasekharan P18-May-08 3:26 
AnswerRe: file accessing problem Pin
Nelek18-May-08 7:15
protectorNelek18-May-08 7:15 
AnswerRe: file accessing problem Pin
chandu00418-May-08 19:53
chandu00418-May-08 19:53 

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.