Old 19th April 2004, 13:48   #1
Lada
Junior Member
 
Join Date: Apr 2004
Posts: 4
Question WHnd of frames

Hie, I'm would like to know how retrieving the Windows Handle of a frame or a container of the Wasabi GUI.
I tried frame->GetOSHandle() but those objects are virtual so it return me NULL.

Thks for your help.
Lada is offline  
Old 19th April 2004, 22:21   #2
Bizzeh
Forum Pirate
Beta Team
 
Bizzeh's Avatar
 
Join Date: Oct 2001
Posts: 2,032
virtualwnd's dont have a hwnd value, its the reason they are "vertual" , its why they can do alphablending and stuff
Bizzeh is offline  
Old 19th April 2004, 22:51   #3
Francis
French Admin
 
Join Date: Nov 2000
Posts: 329
If you want you can get the HWND of the non-virtual window that hosts your virtual window by doing getRootParent()->getOSHandle();

Francis.

Bluemars - Music For The Space Traveller
Francis is offline  
Old 20th April 2004, 07:15   #4
Lada
Junior Member
 
Join Date: Apr 2004
Posts: 4
But with the spy of Microsoft Visual C++ I obtained the handles of frames (in the CodeGUI example), so it's very weird.
Lada is offline  
Old 21st April 2004, 14:00   #5
Lada
Junior Member
 
Join Date: Apr 2004
Posts: 4
Finally I obtained the Hwnd of virtuals objects.
In the Init method of BaseWnd I store the phwnd in a new member HWND and because frames ineherit BaseWnd I can access the hwnd.

I didn't think I had to modify the bfc classes.
Lada is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump