Archived

This topic is now archived and is closed to further replies.

How can i draw a rectangle with colorless inner?

This topic is 5752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can i draw a rectangle with colorless inside the rectangle using WinAPI? Thanks

Share this post


Link to post
Share on other sites
draw 4 lines OR select this brush into your device context, GetStockObject(NULL_BRUSH) and draw your Rectangle

Share this post


Link to post
Share on other sites
Great! I total forgot i can draw 4 lines to represent a rectangle.

How can i change the current brush to GetStockObject(NULL_BRUSH)?

Share this post


Link to post
Share on other sites
how ''bout this, don''t create a brush at all, does the same thing. And then just use the Rect() function to draw your rectangle.

-AJ

C:\DOS
C:\DOS\RUN
RUN\DOS\RUN

-Comic Book Store Guy''s t-shirt that I saw on the Simpsons, although it didn''t actually come from the Simpsons.

http://vdsoft.netfirms.com/home.html

Share this post


Link to post
Share on other sites