OnTimer on derived CWnd not working.

This is a discussion on OnTimer on derived CWnd not working. within the Windows Programming forums, part of the Platform Specific Boards category; I began a new AppWizard SDI app, removed the dialog completely (class and all) and derived my own CWnd. I ...

  1. #1
    Unregistered
    Guest

    Unhappy OnTimer on derived CWnd not working.

    I began a new AppWizard SDI app, removed the dialog completely (class and all) and derived my own CWnd. I CreateEx() my CWnd in my CWinApp's InitInstance() and set m_pMainWnd to it. Then I returned TRUE from InitInstance() to start the messsage pump. A few things don't work. My WM_TIMER message is not being called, nor will any of my mouse input functions be called. I set my timer like this: SetTimer(1, 2000,NULL). This works if I just use the AppWizzard's SDI Dialog, but it is not suited to my needs.

    Any clues why it doesn't work, or how I can fix it?

  2. #2
    Registered User Esss's Avatar
    Join Date
    Aug 2001
    Posts
    133
    A little code would be helpful. Are your message maps set correctly?
    Ess
    Like a rat in a maze who says,
    "Watch me choose my own direction"
    Are you under the illusion
    The path is winding your way?
    - Rush

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. derived class
    By BKurosawa in forum C++ Programming
    Replies: 9
    Last Post: 08-09-2007, 02:18 PM
  2. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 04:01 PM
  3. Help accessing classes and derived classes
    By hobbes67 in forum C++ Programming
    Replies: 8
    Last Post: 07-14-2005, 02:46 PM
  4. Replies: 8
    Last Post: 07-27-2003, 01:52 PM
  5. working out...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 04-10-2003, 10:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21