Capturing an attribute in Resource Editor ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Capturing an attribute in Resource Editor ?

  1. #1
    Join Date
    Oct 2004
    Posts
    11

    Capturing an attribute in Resource Editor ?

    Hi,

    I am using VC++ 6.0. In the resource editor, for every control (edit / list box / custom controls) I need to capture one more attribute apart from the regular ID, styles, etc. to be entered by developers.

    This can be achieved by setting the attribute through the code on each dialog's InitDialog( ) function through each control's hWnd. But is there a way to customize the the properties pop up ( on right cliking each control) and provide an input text box (or of the kind) in it where this attribute can be entered ?

    Thanks,
    Sivsu.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    You would have to make the orig dialog items a base class for your new 'custom control' (I think thats what they are called) which would have the input (similar to a combobox or listbox data section??) -- a lot of trouble if you are in the middle, probably simple if you are just starting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center