Programming/C#
Windows Message를 수신하기 위한 WndProc의 이용
blueasa
2010. 6. 3. 16:45
protected override void WndProc(ref Message m)
{
// Listen for operating system messages.
switch (m.Msg)
{
// The WM_ACTIVATEAPP message occurs when the application
// becomes the active application or becomes inactive.
case WM_ACTIVATEAPP:
// The WParam value identifies what is occurring.
appActive = (((int)m.WParam != 0));
// Invalidate to get new text painted.
this.Invalidate();
break;
}
base.WndProc(ref m);
}
참고한 주소: Control.WndProc Method (System.Windows.Forms)
출처 : http://wslee13.blogspot.com/2008/12/c-windows-message-wndproc.html
{
// Listen for operating system messages.
switch (m.Msg)
{
// The WM_ACTIVATEAPP message occurs when the application
// becomes the active application or becomes inactive.
case WM_ACTIVATEAPP:
// The WParam value identifies what is occurring.
appActive = (((int)m.WParam != 0));
// Invalidate to get new text painted.
this.Invalidate();
break;
}
base.WndProc(ref m);
}
참고한 주소: Control.WndProc Method (System.Windows.Forms)
출처 : http://wslee13.blogspot.com/2008/12/c-windows-message-wndproc.html
반응형