Hello,
how can I change the title of a MFC SDI with a commandline parameter at the first call.
A program call for example:
program.exe -title "Nice title"
thanks for help
cu hick.hack
Printable View
Hello,
how can I change the title of a MFC SDI with a commandline parameter at the first call.
A program call for example:
program.exe -title "Nice title"
thanks for help
cu hick.hack
Well, in the MainFrm.cpp source file, you can edit the "int CMainFrame::OnCreate(LPCREATESTRUCT);" function like this. Try using the "GetCommandLine()" function, and just call "SetWindowText()". It shouldn't be too hard to figure out how to use the functions. :) I hope this helps. :D