Custom Command id's for WM_COMMAND
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Custom Command id's for WM_COMMAND

  1. #1
    Join Date
    Jun 2013
    Posts
    20

    Custom Command id's for WM_COMMAND

    I want to know if it is possible to define a custom command to be sent to WM_COMMAND in the window procedure. For instance I made a toolbar and buttons are created with TBBUTTONS each one has a id command variable that can have STD_NEWFILE and things like that assigned to it.

    Can I define my own command id like similar to STD_NEWFILE to be sent to WM_COMMAND whenever I select a button.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,070

    Re: Custom Command id's for WM_COMMAND

    Strictly saying there are no standard command ids in Windows, and whatever command id you set in control, or menu item, or toolbar button, it appears to be custom.
    Last edited by Igor Vartanov; June 23rd, 2013 at 03:22 PM.
    Best regards,
    Igor

  3. #3
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,059

    Re: Custom Command id's for WM_COMMAND

    What is STD_NEWFILE?
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center