Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper Visual-Objects > Please help: Ge...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 11384 of 11560
Post > Topic >>

Please help: GetObjectByHandle() related to CreateWindowEx()

by eminffsol@[EMAIL PROTECTED] May 13, 2008 at 05:00 AM

Hi Fellows,

I need to create something like a Floating ToolBar and as far as I
found in the NG thos could be an adecuate aproach:

hWnd := CreateWindowEx(WS_EX_TOOLWINDOW,;
	PSZ(_CAST,"#32770"),; // "#32770" the Windows class name for a VO
DialogWindow
	PSZ(_CAST,"ToolWin"),;
	DWORD(_CAST, _OR(WS_POPUP, WS_VISIBLE ) ),;
	CW_USEDEFAULT,;   // just to see what are the default values
	CW_USEDEFAULT,;
	CW_USEDEFAULT,;
	CW_USEDEFAULT,;
	hParent,;      // is a SplitWindow
	NULL_PTR,;
	hInst,;
	NULL_PTR)


IF hWnd != NULL_PTR

    // I get a not null ptr, so far so good !

    oWin := GetObjectByHandle(hWnd)

    oWin is a NULL_OBJECT

ENDIF

How would be the correct way to get oWin visible and working ?

If I use a GUI DialogWindow with
PostInit >> SetWindowLong(SELF:Handle(), GWL_EXSTYLE,
WS_EX_TOOLWINDOW)
Would it be the same ?
Is there anything special using CreateWindowEx() ?

TIA
Ernesto
 




 4 Posts in Topic:
Please help: GetObjectByHandle() related to CreateWindowEx()
eminffsol@[EMAIL PROTECTE  2008-05-13 05:00:16 
Re: Please help: GetObjectByHandle() related to CreateWindowEx()
Malcolm <malcolm-news2  2008-05-13 14:22:29 
Re: Please help: GetObjectByHandle() related to CreateWindowEx()
"Phil Mermod" &  2008-05-13 15:27:51 
Re: Please help: GetObjectByHandle() related to CreateWindowEx()
Emin <cmdepie@[EMAIL P  2008-05-14 03:32:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 3:12:02 CDT 2008.