Thread: Button handler

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    291
    there's no problem with your code, it works fine; in the 'WM_CREATE', you create the button, then switching the 'WM_COMMAND' you search in the 'WPARAM wParam' parameter of the window function (procedure) for a 'HIWORD((WPARAM)wParam)' such as 'BN_CLICKED', if you find it then launch the message. maybe you have an error while the creation of the window, or in the declaration of the main procedure

    niara
    Last edited by Niara; 03-11-2006 at 12:32 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. elliptical button
    By geek@02 in forum Windows Programming
    Replies: 0
    Last Post: 11-21-2006, 02:15 AM
  2. writing text over a deleted button
    By algi in forum Windows Programming
    Replies: 4
    Last Post: 05-02-2005, 11:32 AM
  3. Window won't display on button command!?
    By psychopath in forum Windows Programming
    Replies: 6
    Last Post: 06-22-2004, 08:12 PM
  4. Add ON_COMMAND menu button handler
    By kybert in forum Windows Programming
    Replies: 6
    Last Post: 09-15-2002, 07:33 PM