CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    62

    get messages for dynamically created controls

    Hi Thanks for your attention.
    i have two questions.
    1-do you know how i can get messages for dynamically created controls.
    2-and how i can move them.
    Last edited by armen kc; September 7th, 2006 at 12:00 PM.

  2. #2
    Join Date
    Aug 2005
    Posts
    478

    Re: get messages for dynamically created controls

    1) What kind of messages? If you know exactly what it's doing, you can create the window dynamically with some window identifier (HMENU parameter) and handle the message you get with that identifier conditionally. If it needs to be some sort of generic handling of where they wouldn't have any really specialized functionality in of themselves, you could designate a range of resource identifiers that the functionality of those windows

    2) Keep a handle to them, or GetDlgItem(ID) and MoveWindow or send window moving messages or SetWindowPos.
    Windows XP, Visual Studio 2008, SVN

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured