I'm currently *setting* the controlid for a controlgadget.
Is this safe with PB?
I need to obtain the control handle hWnd from any location.
UseWindow() is not really an option.
I'm using GetDlgItem_(...)
(PS, don't need an alternative)
ControlID
-
- Addict
- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
-
- Addict
- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
Edwin, better sit down and read through the docs if you want a better understanding of all the various PB commands
GadgetID()
-------------
Syntax:
GadgetID = GadgetID(#Gadget)
Description:
Returns the unique GadgetID of the #Gadget.
GadgetID() returns the handle of the current active gadget only if you do not specify the gadget you want the handle for.
Same applies for WIndowID()
GadgetID()
-------------
Syntax:
GadgetID = GadgetID(#Gadget)
Description:
Returns the unique GadgetID of the #Gadget.
GadgetID() returns the handle of the current active gadget only if you do not specify the gadget you want the handle for.
Same applies for WIndowID()
-
- Addict
- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
> What i'm asking is can i set the Windows control id using SetWindowLong( GWL_ID ) API?
> Currently all id's are 0, which is fine, i use these entries for API usage.
>
> Can be that PB will use them for it's own benefit ast some point.
We change internal things without saying so, so its not
safe to assume you can always use anything.
Such internal things can change at any time...
> Currently all id's are 0, which is fine, i use these entries for API usage.
>
> Can be that PB will use them for it's own benefit ast some point.
We change internal things without saying so, so its not
safe to assume you can always use anything.
Such internal things can change at any time...