473,785 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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ü
Nov 17 '05 #1
0 891

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
893
by: sonu | last post by:
I have make a window control dll and call that dll in web application like... <OBJECT id="MyWinControl1" style="LEFT: 224px; TOP: 80px; " classid="test3\bin\Debug\test3.dll#test3.UserControl1" VIEWASTEXT height=0> </OBJECT> this dll open a window form. my problem is...
2
2638
by: Theodoros.Savvides | last post by:
Hi All, We are developing an application and we have a problem for which I cannot find any information anywhere. The application consists of a windows user control and an ASP.NET application that has a Web Form loading this control using the object tag. The HTML code looks like this: <OBJECT id="LoginControl" style="WIDTH: 673px; HEIGHT: 388px" classid="../WinControls/CommonWinControls.dll#CommonWinControls.UCBatchForm"
0
1204
by: Chakravarti Mukesh | last post by:
Hi all, I have a window control that don't have any visual significance (but it have). I want to use that control in my ASP .NET page. What could be the solution? I don't have access to the code. Could I create an interface component that will be used in ASP .NET page using that window component? Thanks
1
1227
by: mfc130603 | last post by:
Hi, My MFC app has dialogs that handle the WM_HELP message. Each dialog has its own context-help string that opens a corresponding page in an HTML Help file. It all works fine - execpt if the currently active dialog has an MSFlexGrid control which has focus (any other child control having focus works correctly, but not flexgrid. MSDN documentation on WM_HELP Message says "The DefWindowProc function passes WM_HELP to the parent window...
0
534
by: ck.kislay | last post by:
When I passed bounding area ( Location,height ,width )of a Window control to the ClipCursor API it restrict the mouse in screen coordinate ,Its fine because ClipCursor works on Screen coordinate. But when I changed the bounding area (Location) to Screen coordinate then pass to ClipCursor API then some time it works and some time it doesn't work. Also how can unrestrict the mouse from ClipCursor? Waiting for Reply, Chandan Kumar
5
1323
by: RK | last post by:
I have a window control library with a user control abd I need to add this dll to the aspx web pag. How can I do this. Thanks, RK
1
2681
by: =?Utf-8?B?amFtZXNAbm9zcGFtLmNvbQ==?= | last post by:
When processing the OnGotFocus event, I need to know the window/control that lost the focus. Is there a way to determint this? With MFC, you could use OnSetFocus which passed you the window that lost the focus. It there something similar with a c# control.
0
994
by: timnels | last post by:
I wanted to created a formatted label control. I know I can add a property to hold the FormatString, but I am not sure what method to override to do the formatting. Any ideas?
0
788
by: LieWait | last post by:
I wanted to created a formatted label control. I know I can add a property to hold the FormatString, but I am not sure what method to override to do the formatting. Any ideas?
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10151
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.