Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change styles of the main window

Status
Not open for further replies.

beercraft

Programmer
Nov 2, 2005
2
AU
Hello. I'm actually from MSVC++/MFC world but I need to do some work on an application written under Borland C++. I need to overwrite window styles of the main window to use
WS_CHILD | WS_VISIBLE, the ext styles WS_EX_TOOLWINDOW and set the parent of the main window (don't ask me why I need to do such weird things, it's for a very specific application:). In MSVC++/MFC this can be done inside a dedicated method of the main window class that is called right before the main window is created and that passes pointer to CREATESTRUCT as its argument. Is it possible to do something similar under Borland C++?
 
Yes. BCB (Borland C++ Builder) will do he same thing since it calls the same API/MFC as VC. BCB also has VCL which is an ecapsulation of some of MFC calls.


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Can you provide a bit more details. I'm not that familiar with BCB and some things which look obvious to you may be new for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top