|
-
Jan 2nd, 2010, 01:00 AM
#1
Thread Starter
Member
Custom window class
Hello all,
I found out that there is something called the "window class" which is not the title of the window, but some sort of coding name, if you know the "class" of any window you can easily hide that window, change the text on its title bar, etc. from your vb program just by using a few APIs to retrieve the handle of the specified window and then do whatever you want the program to do. However I have found out that the "window class" of all the programs I make with vb6 is always the same (ThunderRT6FormDC), but then if I have more than one of my programs open at the same time, it becomes an issue determing how to choose the right one. Does anybody have any idea how to customize this "window class" or some other way to solve my problem?
Thanks a lot in advance!
-
Jan 2nd, 2010, 03:35 AM
#2
Re: Custom window class
If you use the FindWindow API, you could simply supply both parameters, meaning :
The class name
And the Window's caption
Most of the time, that should be sufficient, as the caption helps separate the different ThunderRT6FormDC windows.
You could, however, use the CreateWindow API along with the RegisterClass, CreateWindowEx, SetWindowLong w/ GWL_STYLE, GWL_EXSTYLE, GWL_WINPROC, APIs to create your own windows from scratch - That is the only way that you could assign a different class name to your apps
VB.NET MVP 2008 - Present
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|