Link to home
Start Free TrialLog in
Avatar of win32
win32

asked on

.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.
ASKER CERTIFIED SOLUTION
Avatar of MadYugoslav
MadYugoslav
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NickRepin
NickRepin

SetWindowRgn does not work with the standard buttons.
Avatar of win32

ASKER

True, MadYuqoslav your'r right. I found out just a few minutes after I postet this message.