Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / IanM, Some Help Please

Author
Message
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 15th Jun 2005 01:06 Edited at: 15th Jun 2005 01:07
Hey all

IanM or any one else who can help me with this. Please do

Question 1:
At the moment I am using GetActiveWindow, Do get the HWND. Is there a better way of doing this.



Question 2:
The only way I can create other windows is via a button as the class name. How can I create a windows class with ease.


Thanks Eddie

DirectX in the learning
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 15th Jun 2005 01:23
for question 1 i think there is something in the globstruct.h file which allows you to access the hwnd of the dbpro window - might be a bit more reliable

i think it is g_pglob->hWnd

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 15th Jun 2005 01:36 Edited at: 15th Jun 2005 01:37
IanG, Thank you that works But Now for question 2...

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Jun 2005 02:38
I'll try and help with your second question ... but I really dislike the windows gui system.

First, there are many other standard classes beyond BUTTON :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindow.asp

Check out the list in the remarks section. In addition, there is nothing to stop you creating your own class - just as you do when you create the first window for a new application. Just complete a WNDCLASSEX structure, and use the RegisterClass function to register it with windows. Then you can assign the classname you specified within the structure to open a new window against.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 15th Jun 2005 02:50
ah I see. So if I do create my own class, It will not affect dbpro.

I think I get you know. Thanks for replying, Eddie.

Login to post a reply

Server time is: 2024-11-23 09:44:49
Your offset time is: 2024-11-23 09:44:49