| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"" |
| Date: |
06 May 2006 01:23:00 PM |
| Object: |
SetWindowRgn tu Button |
Hi. I am using VC++ win32 api. Now I am trying to draw a button using
SetWindowRgn function. This function doesn't work on button like to
window, and I have no ideea why. When I call function this way
case: WM_COMMAND
switch(wmId)
case buton1id:
SetWindowRgn(hbutton,rgn,true);
break;
break;,
it means when I click on button, it becomes the form I need, but when I
click second time the button, or drag the window, or press alt+tab, it
doesn't work any more.
Can any one help me? Does any one know where is the problem and how to
fix it?
Thank you
.
|
|
| User: "Jim Langston" |
|
| Title: Re: SetWindowRgn tu Button |
06 May 2006 05:16:15 PM |
|
|
<scurtu19@yahoo.de> wrote in message
news:1146939779.980852.192890@u72g2000cwu.googlegroups.com...
Hi. I am using VC++ win32 api. Now I am trying to draw a button using
SetWindowRgn function. This function doesn't work on button like to
window, and I have no ideea why. When I call function this way
case: WM_COMMAND
switch(wmId)
case buton1id:
SetWindowRgn(hbutton,rgn,true);
break;
break;,
it means when I click on button, it becomes the form I need, but when I
click second time the button, or drag the window, or press alt+tab, it
doesn't work any more.
Can any one help me? Does any one know where is the problem and how to
fix it?
Thank you
Wrong newsgroup. Ask in a group with windows in it's name (such as
microsoft.public.vc.language)
.
|
|
|
|
| User: "Jonathan Mcdougall" |
|
| Title: Re: SetWindowRgn tu Button |
06 May 2006 02:18:26 PM |
|
|
wrote:
Hi. I am using VC++ win32 api. Now I am trying to draw a button using
SetWindowRgn function.
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
Jonathan
.
|
|
|
|

|
Related Articles |
|
|