Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Nov : create window ex problem

www.cryer.info
Managed Newsgroup Archive

create window ex problem

Subject:create window ex problem
Posted by:"Erick Hartanto" (nospam@nospam.com)
Date:Wed, 30 Nov 2005 11:44:32 +0700

hello,

for some reason, i have to create a control using winAPI in run time,
nothing fancy in the control, i just need at least access to WM_PAINT,
WM_LBUTTONxxx, WM_MOUSEMOVE only

i tried to playing first with CreateWindowEx but failed, please help.
here is my code:

ControlWnd := CreateWindowEx (0, // extended styles
    'MyClass', // class
    '', // caption
    WS_CHILD or WS_VISIBLE, // styles
    20, 20, // position
    121, 25, // size
    Form1.Handle, // parent
    0, // identifier
    HInstance, // isntance
    nil); // i

thanks in advance

Replies:

www.cryer.info
Managed Newsgroup Archive