Results 1 to 2 of 2

Thread: allow no setfocus

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    allow no setfocus

    I don't want my buttons to be able to be focussed...like the buttons in the title bar...any way?

  2. #2
    Sc0rp
    Guest
    I haven't tried it, but I think the DrawFocusRect API should do the job.

    Originally posted by MSDN
    Remarks

    Because DrawFocusRect is an XOR function, calling it a second time with the same rectangle removes the rectangle from the screen.
    Use your button's coordiates to get the focus rect's coordinates, fill a RECT struct with the data, and call the function, and this should remove the focus rectangle.

    Let me know if it works.

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