Can you give me a example for CreateWindow...?

Can you give me a example for CreateWindowEx
procedure?
U see I Create a window but I don't know how
to use it like Painting,Creating butons,memos and other
things.
Can you help me ?
Thanks!
kaloyanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
viktornetConnect With a Mentor Commented:
you call it like this...

hWnd := CreateWindowEx(..);

the params that need to be filled in the CreateWindowEx() are the classname, title name, windows style (WS_OVERLAPPEDWINDOW), x, y, width, height, and the hInstance param. that's all you need... thec check to see if the window handle is ZERO...

if hWnd = 0 then begin
  Result := 0;
  Exit;
end;

....
the message-pump..

Result := Msg.wParam;
end.

That's about it.. If you need a complete  working example, please let me know, and as soon as I get home I'll post it here..

..-=ViKtOr=-..
0
 
LischkeCommented:
Hi,

this sounds a bit strange to me. Why do you want to do all the work the VCL does for you? You should be aware that creating all those windows and controls is expensive programming work. If you just want to do the painting yourself then there are better (and much easier) solutions available.

Ciao, Mike
0
 
viktornetCommented:
Okay, I'm home now... but you didn't tell me if you need a complete example, so please do...

..-=ViKtOr=-..
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
kaloyanAuthor Commented:
Yes I need an example!

Thank you.

Kaloyan
0
 
viktornetCommented:
What's your e-mail so I can send you the code? I tried posting it here, but it gives me internal errors.. so I guess we'll be better off if I send the code over the e-mail...

..-=ViKtOr=-..
0
 
kaloyanAuthor Commented:
My E-Mail is kaloyan@mbox.eda.bg.
My ICQ is 40042767.
0
 
kaloyanAuthor Commented:
My E-Mail is kaloyan@mbox.eda.bg.
My ICQ is 40042767.

Kaloyan
0
All Courses

From novice to tech pro — start learning today.