PC Review


Reply
Thread Tools Rate Thread

CreateWindowEx with a custom control

 
 
=?Utf-8?B?RnJhbno=?=
Guest
Posts: n/a
 
      25th Aug 2006
I try to use the CreateWindowExA function with my own control (this just
displays a image and text), and it doesn't work.
I can use it with 'edit' or 'button' like:

IntPtr ptr = CreateWindowExA(0, "BUTTON", "", WS_CHILD | WS_VISIBLE,
1024, 4, 127, 23, m_pcoParent, IntPtr.Zero, IntPtr.Zero,
IntPtr.Zero);

I 've read, than for use this API with a custom control, I must use
RegisterClassExA.
I already tested, but that doesn't work!

can somebody help me?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateWindowEx JP Ronse Microsoft Excel Programming 3 25th Aug 2009 05:48 PM
CreateWindowEx with WS_POPUP crashs. Jan Schukat Microsoft VC .NET 3 6th Mar 2004 08:17 AM
CreateWindowEx / RegisterClass James L Microsoft Dot NET Compact Framework 2 6th Dec 2003 07:59 PM
createwindowex api call Tony Microsoft VB .NET 3 3rd Nov 2003 06:02 AM
P/Invoke to CreateWindowEx() Nandakumar Sankaran Microsoft Dot NET Compact Framework 4 12th Jul 2003 10:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:46 AM.