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
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.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK