It's possible to convert dialogs into MDI Child Windows without loosing everything I've done with resources ?
It's possible to convert dialogs into MDI Child Windows without loosing everything I've done with resources ?
[C++]
IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
2nd compiler: g++ (GCC 3.4.3/4.0.0)
3rd compiler: Borland 5.5
[C#]
IDE: Microsoft Visual C# Express 2005
2nd IDE: SharpDevelop
2nd compiler: csc in Command Prompt
.NET Framework: 2.0
[PHP]
Core: 5.1.0 beta 3
IDE: PHPEdit
2nd IDE: Notepad
Favourite extensions: exif,gd2,mysql
Favourite PEAR packages: DB, XML_RSS, ID3
Favourite databases: SQLite, MySQL
One option would be to create a custom window class based on the dialog class (see Custom Dialog Boxes); this window class, once modified would become an mdi child window class. Another option is to just glue your dialog (borderless) onto the client area of an mdi child window(ie. make the dialog a child of the mdi child window), which would probably be much simpler, particularly if you're not familiar with custom dialogs.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Thanks, but how can I glue dialog to MDI Child Window ?
[C++]
IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
2nd compiler: g++ (GCC 3.4.3/4.0.0)
3rd compiler: Borland 5.5
[C#]
IDE: Microsoft Visual C# Express 2005
2nd IDE: SharpDevelop
2nd compiler: csc in Command Prompt
.NET Framework: 2.0
[PHP]
Core: 5.1.0 beta 3
IDE: PHPEdit
2nd IDE: Notepad
Favourite extensions: exif,gd2,mysql
Favourite PEAR packages: DB, XML_RSS, ID3
Favourite databases: SQLite, MySQL
If the dialog is a child window just make its dimensions relative to the parent (mdi child) window's client area. Failing that, just SetWindowPos in the dialog's WM_INITDIALOG handler.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Can you give me an example?
[C++]
IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
2nd compiler: g++ (GCC 3.4.3/4.0.0)
3rd compiler: Borland 5.5
[C#]
IDE: Microsoft Visual C# Express 2005
2nd IDE: SharpDevelop
2nd compiler: csc in Command Prompt
.NET Framework: 2.0
[PHP]
Core: 5.1.0 beta 3
IDE: PHPEdit
2nd IDE: Notepad
Favourite extensions: exif,gd2,mysql
Favourite PEAR packages: DB, XML_RSS, ID3
Favourite databases: SQLite, MySQL
Oops, forgot about this - example attached (drop the .txt from script.rc.txt; cprog doesn't currently permit upload of *.rc files).
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.