Thread: MFC: Clear Client Area

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483

    MFC: Clear Client Area

    I am begginer with MFC im writing a small program where you can draw lines freely in the Client Area.. and i have a menu with only 1 option.. lol

    Its "Clear" Its suppose to clear w/e the user has drawn..

    right now i have it to post a WM_PAINT message but it doesn't seem to do anything... How ever if you do something to cause Windows to send a WM_PAINT message to the program it clears it..

    for example when you drag another window over it, or when you resize it..

    So how do i Clear the Client Area?

    EDIT:
    Forgot to mention im drawing something everytime WM_PAINT is called.. and thats whats causing it not to clear the Client area.. i tried without drawing anything and it works perfectly..
    Last edited by mrafcho001; 06-27-2005 at 10:15 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client - Server TCP/IP MFC app..... Help!
    By amedinadiaz in forum C++ Programming
    Replies: 0
    Last Post: 10-26-2005, 11:57 AM
  2. Client not receiving FD_CLOSE notification message?
    By dp_76 in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-22-2005, 11:08 PM
  3. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Clearing the client area
    By Isometric in forum Windows Programming
    Replies: 15
    Last Post: 01-29-2002, 10:07 PM