reciving a handle as an argument.

Just starting out? Need help? Post your questions and find answers here.
okman
New User
New User
Posts: 5
Joined: Fri May 21, 2004 5:06 pm

reciving a handle as an argument.

Post by okman »

i am making a dll to close the window calling it. i want to include an argument of HWND type. how do i do it. i tried this

proceduredll clswin(HWND hand)

but pb gives me error. so is there ne other way. see the program using the dll can return its handle to the hand argument.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

hwnd is a long, that should put you in the right direction
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
carolight
User
User
Posts: 41
Joined: Mon Feb 09, 2004 11:08 am
Location: Gold Coast, Australia

Post by carolight »

In PureBasic

Code: Select all

WindowID(#windownum) 
returns a HWND handle for the window. You need to specify the Window number eg WindowID(0)
Soulfire
User
User
Posts: 23
Joined: Mon Mar 08, 2004 7:17 am

Post by Soulfire »

Code: Select all

ProcedureDLL clswin(hand.l)
Post Reply