Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI: Painting over existing picture Pin
8-Jun-01 3:15
suss8-Jun-01 3:15 
GeneralRe: GDI: Painting over existing picture Pin
Tomasz Sowinski8-Jun-01 3:22
Tomasz Sowinski8-Jun-01 3:22 
GeneralRe: GDI: Painting over existing picture Pin
8-Jun-01 3:39
suss8-Jun-01 3:39 
GeneralRe: GDI: Painting over existing picture Pin
Tomasz Sowinski8-Jun-01 3:42
Tomasz Sowinski8-Jun-01 3:42 
GeneralRe: GDI: Painting over existing picture Pin
8-Jun-01 4:00
suss8-Jun-01 4:00 
GeneralRe: GDI: Painting over existing picture Pin
Tomasz Sowinski8-Jun-01 4:09
Tomasz Sowinski8-Jun-01 4:09 
GeneralDrawFocusRect Pin
8-Jun-01 4:29
suss8-Jun-01 4:29 
GeneralRe: DrawFocusRect Pin
Tomasz Sowinski8-Jun-01 4:39
Tomasz Sowinski8-Jun-01 4:39 
From the DrawFocusRect documentation:
"DrawFocusRect works only in MM_TEXT mode."

If you need some other mapping mode, the only way is to call SetROP2 and draw rectangle manually. You can use MoveTo/LineTo or set a brush to GetStockObject(NULL_BRUSH) and call Rectangle. I'm assuming you need only outline of the rectangle - as specified in original post.

You can check KB article Q135865 to get sample on "How to use Win32 API to Draw a Dragging Rectangle on Screen DC". Your task is probably easier - you'll be drawing inside your own window only. You can also search for "sample setrop2" in your VC++ help - this search gives more than 20 hits on my workstation.


Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralI've got it ... Pin
8-Jun-01 5:06
suss8-Jun-01 5:06 
GeneralRe: Changing a dialogs size Pin
Tomasz Sowinski8-Jun-01 2:12
Tomasz Sowinski8-Jun-01 2:12 
GeneralRe: Changing a dialogs size Pin
Ben Burnett8-Jun-01 2:48
Ben Burnett8-Jun-01 2:48 
GeneralUpdateData ( FALSE ) don`t work in a FOR loop Pin
P. S Thakur8-Jun-01 1:43
P. S Thakur8-Jun-01 1:43 
GeneralRe: UpdateData ( FALSE ) don`t work in a FOR loop Pin
Ben Burnett8-Jun-01 2:08
Ben Burnett8-Jun-01 2:08 
GeneralRe: UpdateData ( FALSE ) don`t work in a FOR loop Pin
Stan Shannon8-Jun-01 2:26
Stan Shannon8-Jun-01 2:26 
GeneralThe concept is the problem Pin
skfnmuislædmufaæoi8-Jun-01 6:32
skfnmuislædmufaæoi8-Jun-01 6:32 
GeneralVC6 and ClassWizard Pin
jerry0davis8-Jun-01 1:33
jerry0davis8-Jun-01 1:33 
GeneralStack overflow Pin
7-Jun-01 22:13
suss7-Jun-01 22:13 
GeneralRe: Stack overflow Pin
Deepak Khajuria7-Jun-01 22:40
Deepak Khajuria7-Jun-01 22:40 
GeneralRe: Stack overflow Pin
Tomasz Sowinski8-Jun-01 0:32
Tomasz Sowinski8-Jun-01 0:32 
GeneralC++ to view Tiff Images Pin
7-Jun-01 21:28
suss7-Jun-01 21:28 
GeneralRe: C++ to view Tiff Images Pin
Deepak Khajuria7-Jun-01 22:45
Deepak Khajuria7-Jun-01 22:45 
Generalgetting fileversion /build from version resource Pin
7-Jun-01 20:49
suss7-Jun-01 20:49 
GeneralRe: getting fileversion /build from version resource Pin
Tomasz Sowinski8-Jun-01 0:27
Tomasz Sowinski8-Jun-01 0:27 
GeneralGetting a WM_LBUTTONUP in a listview Pin
Jim Crafton7-Jun-01 18:08
Jim Crafton7-Jun-01 18:08 
GeneralRe: Getting a WM_LBUTTONUP in a listview Pin
7-Jun-01 19:35
suss7-Jun-01 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.