943,940 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2378
  • C RSS
Nov 12th, 2006
0

DefWindowProc

Expand Post »
here's a piece of window procedure. What does DefWindowProc do in this program.
LRESULT CALLBACK WndProcedure(HWND hWnd, UINT Msg,
               WPARAM wParam, LPARAM lParam)
{
    switch(Msg)
    {
    case WM_DESTROY:
        // user wants to exit
        PostQuitMessage(WM_QUIT);
        break;
    default:
        // Hand off unprocessed messages to DefWindowProc
        return DefWindowProc(hWnd, Msg, wParam, lParam);
    }
    
    return 0;
}
Similar Threads
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Nov 12th, 2006
0

Re: DefWindowProc

Check out MSDN.
Reputation Points: 12
Solved Threads: 1
Junior Poster
manutd is offline Offline
100 posts
since Nov 2006
Nov 12th, 2006
0

Re: DefWindowProc

read this tutorial
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Begginer Question
Next Thread in C Forum Timeline: MFC Countdown Timer





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC