PC Review


Reply
Thread Tools Rate Thread

Removing Message from subclassed Window (or Control)...

 
 
Kerem Gümrükcü
Guest
Posts: n/a
 
      24th May 2005
Hi,

i subclassed a window (in C#) via WndProc and i catch the messages
SC_MINIMIZE and
SC_CLOSE from the WM_SYSCOMMAND Message. How can i remove them
from the message queue of the window or at least prevent them from reaching
the
Message Handler of the Window?

It looks something like this:

<code>
switch(m.Msg){
case WM_SYSCOMMAND:
switch(m.wParam){
case SC_MINIMIZE:
//how to erease or remove the message ?
break;
}
break;


}
</code>

Thanks in advance...


Best Regards

Kerem Gümrükcü


 
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
Adding FormatString property to a subclassed Label control timnels@gmail.com Microsoft C# .NET 0 5th Sep 2007 09:32 PM
Subclassed control in projected doesn't show up in toolbox CJM Microsoft C# .NET 3 17th Feb 2006 04:39 PM
OnPaint is not called in subclassed button control =?Utf-8?B?U3RyaWRlcg==?= Microsoft Dot NET Compact Framework 1 5th Dec 2005 03:17 PM
Removing Message from subclassed Window (or Control)... Kerem Gümrükcü Microsoft C# .NET 0 24th May 2005 05:01 PM
Inherited User Control + Subclassed components + Dissapear after build!!!!!!!!!!!!!!! snesbit Microsoft Dot NET Framework Forms 1 5th Apr 2005 03:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:26 PM.