in class of WTL:
class CMainFrame : public CFrameWindowImpl<CMainFrame>, public
CUpdateUI<CMainFrame>,
public CMessageFilter, public CIdleHandler
---------------------------------------------------------------------------------------------
"green" <green...@hotmail.com> д����Ϣ����:e4v77F5g...@TK2MSFTNGP02.phx.gbl...
> Hello, every one!
>
> Ownerdraw main window , I used SetWindowRgn to cut down the four corners,
> but there will left something drawing here when you drag the corners and
> borders to resized the window on the background of the main window. Only 3
> corners of the four corners do this.
>
>
> Thanks a lot!
>
>
>
>
-- David
"green" <green...@hotmail.com> wrote in message
news:uvUQRO5g...@TK2MSFTNGP02.phx.gbl...
Note: given a choice of representing x0-to-x1 using either the value x1-1 or x1, no matter
which choice is made, it will be wrong. Over the years, I have worked with several
graphics systems. Some of them used x1, some used x1-1. Each will give you problems. The
x1-1 generally has fewer problems. In either system you end up in some contexts either
adding 1 (for those that give x1-1) or subtracting 1 (for those that give x1) so there is
no one "right" solution.
joe
On Wed, 23 Dec 2009 13:33:38 +0800, "green" <green...@hotmail.com> wrote:
>Hello, every one!
>
>Ownerdraw main window , I used SetWindowRgn to cut down the four corners,
>but there will left something drawing here when you drag the corners and
>borders to resized the window on the background of the main window. Only 3
>corners of the four corners do this.
>
>
>Thanks a lot!
>
>
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
"Joseph M. Newcomer" <newc...@flounder.com>
??????:bfu4j5ls8v719g0iq...@4ax.com...
Your idea seems good and ... ,
Let me try!
By the why , late I will upload my test source code and the app (exe file).
Merry Christmas and a Happy New Year!
"Joseph M. Newcomer" <newc...@flounder.com>
??????:rpt4j59avpte2ucm5...@4ax.com...
It is generally a good idea to avoid posting attachments, whether zip files or images. For
example, I almost never see an image; I saw one a few days ago, and that was actually a
surprise.
joe
On Thu, 24 Dec 2009 13:27:14 +0800, "green" <green...@hotmail.com> wrote:
>
>I can not upload zip files and jpg files now , Just one more test on jpg
>file upload.
>
>
>
>
>"green" <green...@hotmail.com> д����Ϣ����:e4v77F5g...@TK2MSFTNGP02.phx.gbl...
I've not used hWindowDC after SetWindowRgn before. Why don't you use a
client DC? Why do you need to draw the non-client area after you've cut
down (I assume you mean rounded) corners? I've used SetWindowRgn (
CreateRoundRectRgn(...) ) with good success.
-- David