May 01, 2024, 11:18:26 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Handle of Control

Started by nico, July 14, 2007, 04:51:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nico

Hello,

How to obtain the Handle of Control?

ExMember001

July 14, 2007, 08:12:49 PM #1 Last Edit: July 14, 2007, 08:36:02 PM by KrYpT
if i understand your question the answer should be
example:

//example with an edit control
CEdit *m_ed;
Unsigned INT Handle = m_ed->m_hwnd;

Bruce Peaslee

If you want the handle of the control to do something with it:


CStatic *myStatic; // note it's a pointer
myStatic = GetControl(N);    // N is the control number used when control was created
myStatic-> SetText("Text for control");
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

nico