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

    Static control: how to make ownerdraw in the IDE?

    The option to do so is not available in the properties for a static in VC++.
    I have to manually edit the .rc file, and only *then* does the option appear.

    Is there a way to avoid having to manually edit the .rc file?

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585

    Re: Static control: how to make ownerdraw in the IDE?

    The wizards do not show every single property for a control. Only the mose significant ones. That does not mean you need to change the style in the resource editor. All you need to do is make sure to give the control an ID other than IDC_STATIC. Then, after the control has been created, you can modify it's style with CWnd::ModifyStyle() passing SS_OWNERDRAW.
    Gort...Klaatu, Barada Nikto!

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