You can't change the classname since this is set when the native window
is created. You can change the caption of the messagewindow so that you
can use FindWindow to locate your messagewindow. You can do this by
P/Invoking SetWindowText e.g.
[C#]
[DllImport("coredll.dll")]
private static extern bool SetWindowText(IntPtr hwnd, string text);
[VB]
Private Declare Function SetWindowText Lib "coredll.dll" (ByVal hwnd As
IntPtr, ByVal text As String) As Boolean
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com |
www.opennetcf.org
Does anyone have any idea how to change the MessageWindow's class name,
so I can use it with APIs that target a specific Classname?
Thanks.