PC Review


Reply
Thread Tools Rate Thread

CreateWindowEx / RegisterClass

 
 
James L
Guest
Posts: n/a
 
      6th Dec 2003
I have been trying to p/invoke RegisterClass and CreateWindowEx to create
'floating' tooltip style windows in my app that I can add text and graphics
to. I cannot see how to assign a WndProc function pointer to the WNDCLASS
object. Is this possible or is there another way I could go about it?

I want to be able to trigger the window from controls, I wrote a custom
control to do what I wanted but couldn't get the triggering control to draw
outside it's own bounds.

thanks

James


 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      6th Dec 2003
You *may* be able to use a MessageWindow class and pass it its handler to
it, though I don't think the function pointer will cross the P/Invoke
boundary properly. It's worth a try, but don't get your hopes up.

-Chris

"James L" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have been trying to p/invoke RegisterClass and CreateWindowEx to create
> 'floating' tooltip style windows in my app that I can add text and

graphics
> to. I cannot see how to assign a WndProc function pointer to the WNDCLASS
> object. Is this possible or is there another way I could go about it?
>
> I want to be able to trigger the window from controls, I wrote a custom
> control to do what I wanted but couldn't get the triggering control to

draw
> outside it's own bounds.
>
> thanks
>
> James
>
>



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      6th Dec 2003
An alternative is to use a panel control (which you keep hidden until
required) which you can move around and place over your form to simulate a
tooltip. This technique is used in the Pocket TaskVision sample
(http://msdn.microsoft.com/library/de...-us/dnnetcomp/
html/wnf_pkttaskvision.asp) to create a floating progress dialog.
This way will not require any P/Invokes to native APIs and should be fairly
simple to implement.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"James L" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have been trying to p/invoke RegisterClass and CreateWindowEx to create
> 'floating' tooltip style windows in my app that I can add text and

graphics
> to. I cannot see how to assign a WndProc function pointer to the WNDCLASS
> object. Is this possible or is there another way I could go about it?
>
> I want to be able to trigger the window from controls, I wrote a custom
> control to do what I wanted but couldn't get the triggering control to

draw
> outside it's own bounds.
>
> thanks
>
> James
>
>



 
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
Native Code RegisterClass Bebel Microsoft Dot NET Compact Framework 0 13th Feb 2009 11:16 AM
Native Code - RegisterClass Bebel Microsoft Dot NET Compact Framework 0 13th Feb 2009 11:12 AM
.NET Ajax registerClass George Ter-Saakov Microsoft ASP .NET 2 19th Feb 2008 08:46 PM
NativeWindow.RegisterClass bug Gianluca Microsoft C# .NET 0 14th Sep 2005 03:37 PM


Features
 

Advertising
 

Newsgroups
 


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