[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

.SetWindowRgn

I wanna set a WindowRgn for a CButton

m_CButton.SetWindowRgn(HRGN hRgn, true);

How do I setup a hRgn so I will only draw ? a button. What I want 2 do is draw Width/2 of a button, therefor I need to set a hRgn for my button right ?

-- How is it done ?
CB.
0
win32
Asked:
win32
1 Solution
 
MadYugoslavCommented:
HRGN CreateRectRgn(
  int nLeftRect,   // x-coordinate of region's upper-left corner
  int nTopRect,    // y-coordinate of region's upper-left corner
  int nRightRect,  // x-coordinate of region's lower-right corner
  int nBottomRect  // y-coordinate of region's lower-right corner
);
0
 
NickRepinCommented:
SetWindowRgn does not work with the standard buttons.
0
 
win32Author Commented:
True, MadYuqoslav your'r right. I found out just a few minutes after I postet this message.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now