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
This is a discussion on Change Title in a MFC SDI within the Windows Programming forums, part of the Platform Specific Boards category; Hello, how can I change the title of a MFC SDI with a commandline parameter at the first call. A ...
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: trifaze_mattu@lycos.com
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK