Click here to Skip to main content
15,881,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmysql error and UNICODE Pin
includeh104-Jun-11 18:44
includeh104-Jun-11 18:44 
AnswerRe: mysql error and UNICODE Pin
Code-o-mat5-Jun-11 22:26
Code-o-mat5-Jun-11 22:26 
QuestionIs it possible to set another visual style only for my application [modified] Pin
Cold_Fearing_Bird4-Jun-11 16:59
Cold_Fearing_Bird4-Jun-11 16:59 
AnswerRe: Is it possible to set another visual style only for my application Pin
Rotted Frog6-Jun-11 20:46
Rotted Frog6-Jun-11 20:46 
Question[Win32] How draw a rectangle on the desktop Pin
Member 29654714-Jun-11 9:34
Member 29654714-Jun-11 9:34 
QuestionRe: [Win32] How draw a rectangle on the desktop Pin
Mark Salsbery4-Jun-11 11:16
Mark Salsbery4-Jun-11 11:16 
AnswerRe: [Win32] How draw a rectangle on the desktop Pin
Member 29654714-Jun-11 11:51
Member 29654714-Jun-11 11:51 
GeneralRe: [Win32] How draw a rectangle on the desktop Pin
Mark Salsbery4-Jun-11 11:56
Mark Salsbery4-Jun-11 11:56 
Yes, you'd have to set the erase background flag to true in the call and call UpdateWindow() to force an immediate paint. That worked on older OSs but on Windows 7 the updates don't happen while you have the mouse button pressed it seems. It does work on the LBUTTONUP message (just tested it).

You may have to double buffer - grab the image for the rect from the screen, draw your rectangle, draw the captured image back to the screen to erase, etc.
Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: [Win32] How draw a rectangle on the desktop Pin
bob169725-Jun-11 4:40
bob169725-Jun-11 4:40 
QuestionEncryption/Decryption on html file? Pin
Le@rner3-Jun-11 20:04
Le@rner3-Jun-11 20:04 
AnswerRe: Encryption/Decryption on html file? Pin
Mark Salsbery3-Jun-11 20:27
Mark Salsbery3-Jun-11 20:27 
GeneralRe: Encryption/Decryption on html file? Pin
Le@rner3-Jun-11 21:39
Le@rner3-Jun-11 21:39 
AnswerRe: Encryption/Decryption on html file? Pin
Philippe Mori4-Jun-11 16:47
Philippe Mori4-Jun-11 16:47 
AnswerRe: Encryption/Decryption on html file? Pin
Philippe Mori4-Jun-11 16:53
Philippe Mori4-Jun-11 16:53 
QuestionHelp with Side-by-Side error Pin
turbosupramk33-Jun-11 9:44
turbosupramk33-Jun-11 9:44 
GeneralRe: Help with Side-by-Side error Pin
David Crow3-Jun-11 10:44
David Crow3-Jun-11 10:44 
GeneralRe: Help with Side-by-Side error Pin
turbosupramk33-Jun-11 18:17
turbosupramk33-Jun-11 18:17 
AnswerRe: Help with Side-by-Side error Pin
Chuck O'Toole3-Jun-11 13:48
Chuck O'Toole3-Jun-11 13:48 
GeneralRe: Help with Side-by-Side error Pin
turbosupramk33-Jun-11 18:16
turbosupramk33-Jun-11 18:16 
GeneralRe: Help with Side-by-Side error Pin
turbosupramk36-Jun-11 4:46
turbosupramk36-Jun-11 4:46 
GeneralRe: Help with Side-by-Side error Pin
Chuck O'Toole6-Jun-11 6:39
Chuck O'Toole6-Jun-11 6:39 
AnswerRe: Help with Side-by-Side error Pin
turbosupramk36-Jun-11 6:21
turbosupramk36-Jun-11 6:21 
QuestionHow to get the locale? [SOLVED] Pin
Super Lloyd2-Jun-11 5:57
Super Lloyd2-Jun-11 5:57 
AnswerRe: How to get the locale? [SOLVED] Pin
David Crow2-Jun-11 7:45
David Crow2-Jun-11 7:45 
AnswerRe: How to get the locale? [SOLVED] Pin
Super Lloyd2-Jun-11 16:59
Super Lloyd2-Jun-11 16:59 

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.