Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalconverting regular c++ to Managed C++ Pin
pnpfriend23-Dec-04 10:07
pnpfriend23-Dec-04 10:07 
GeneralRe: converting regular c++ to Managed C++ Pin
Alex Korchemniy24-Dec-04 9:56
Alex Korchemniy24-Dec-04 9:56 
GeneralRe: converting regular c++ to Managed C++ Pin
Anonymous28-Dec-04 4:23
Anonymous28-Dec-04 4:23 
GeneralDLLHOST replacement? (IIS/ISAPI/C++) Pin
Peter Weyzen23-Dec-04 8:36
Peter Weyzen23-Dec-04 8:36 
GeneralMDI child frame windows size Pin
LeeeNN23-Dec-04 8:20
LeeeNN23-Dec-04 8:20 
GeneralStartup Location in Windows Desktop Pin
bitpusher23-Dec-04 8:12
bitpusher23-Dec-04 8:12 
GeneralRe: Startup Location in Windows Desktop Pin
Neville Franks23-Dec-04 9:11
Neville Franks23-Dec-04 9:11 
GeneralRe: Startup Location in Windows Desktop Pin
bitpusher23-Dec-04 11:01
bitpusher23-Dec-04 11:01 
Thanks for the reply.

Here's the relevant code in InitInstance()...

	........<br />
        AddDocTemplate(pDocTemplate);<br />
	CCommandLineInfo cmdInfo;<br />
	ParseCommandLine(cmdInfo);<br />
	if (!ProcessShellCommand(cmdInfo))<br />
		return FALSE;<br />
        <br />
    m_pMainWnd->SetWindowPos(0,50,50,840,860,SWP_NOZORDER);<br />
<br />
	// The one and only window has been initialized, so show and update it<br />
    m_pMainWnd->ShowWindow(SW_SHOW);<br />
    m_pMainWnd->UpdateWindow();


Using the debugger, I see that the window actually paints (in the wrong place) upon the execution of ProcessShellCommand(). Hmmm.... I cannot put SetWindowPos() above this because the window (as evidenced by the errors) hasn't been created yet. Should I be intercepting another message from a process that executes inside ProcessShellCommand()?

thanks,


JennyP
GeneralRe: Startup Location in Windows Desktop Pin
Neville Franks23-Dec-04 13:03
Neville Franks23-Dec-04 13:03 
GeneralRe: Startup Location in Windows Desktop Pin
gamitech23-Dec-04 9:48
gamitech23-Dec-04 9:48 
GeneralMultiline CListView entry (report mode) Pin
bitpusher23-Dec-04 7:13
bitpusher23-Dec-04 7:13 
GeneralDialogBar Pin
Member 155875123-Dec-04 7:02
Member 155875123-Dec-04 7:02 
Generalboottime screen output (eg. checkdisk) Pin
e-sushi23-Dec-04 6:08
e-sushi23-Dec-04 6:08 
GeneralRe: boottime screen output (eg. checkdisk) Pin
Michael Dunn23-Dec-04 6:37
sitebuilderMichael Dunn23-Dec-04 6:37 
GeneralRe: boottime screen output (eg. checkdisk) Pin
e-sushi24-Dec-04 1:43
e-sushi24-Dec-04 1:43 
GeneralRe: boottime screen output (eg. checkdisk) Pin
WoutL23-Dec-04 8:05
WoutL23-Dec-04 8:05 
GeneralRe: boottime screen output (eg. checkdisk) Pin
e-sushi24-Dec-04 1:39
e-sushi24-Dec-04 1:39 
QuestionDoes this make sense? Pin
Turtle Hand23-Dec-04 5:37
Turtle Hand23-Dec-04 5:37 
AnswerRe: Does this make sense? Pin
Rick York23-Dec-04 5:59
mveRick York23-Dec-04 5:59 
GeneralRe: Does this make sense? Pin
Turtle Hand23-Dec-04 7:28
Turtle Hand23-Dec-04 7:28 
AnswerRe: Does this make sense? Pin
Maximilien23-Dec-04 6:00
Maximilien23-Dec-04 6:00 
Generalcompiler versions Pin
andyvinc23-Dec-04 5:11
andyvinc23-Dec-04 5:11 
GeneralRe: compiler versions Pin
Michael Dunn23-Dec-04 6:27
sitebuilderMichael Dunn23-Dec-04 6:27 
GeneralRe: compiler versions Pin
andyvinc23-Dec-04 6:54
andyvinc23-Dec-04 6:54 
GeneralRe: compiler versions Pin
Michael Dunn23-Dec-04 7:53
sitebuilderMichael Dunn23-Dec-04 7: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.