Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I use std::stringstream to format data to a string like sprintf "%02d"[modified] Pin
akira328-Apr-10 17:51
akira328-Apr-10 17:51 
AnswerRe: How do I use std::stringstream to printf "%02d" Pin
KingsGambit8-Apr-10 18:36
KingsGambit8-Apr-10 18:36 
AnswerRe: How do I use std::stringstream to printf "%02d" Pin
Gwenio8-Apr-10 18:38
Gwenio8-Apr-10 18:38 
QuestionHow to use a Dialog Template as an item in another Dialog. Pin
Bram van Kampen8-Apr-10 15:06
Bram van Kampen8-Apr-10 15:06 
AnswerRe: How to use a Dialog Template as an item in another Dialog. Pin
cmk8-Apr-10 15:53
cmk8-Apr-10 15:53 
QuestionLPWSTR / Win32 Pin
Fareed Rizkalla8-Apr-10 7:10
Fareed Rizkalla8-Apr-10 7:10 
AnswerRe: LPWSTR / Win32 Pin
PJ Arends8-Apr-10 7:47
professionalPJ Arends8-Apr-10 7:47 
AnswerRe: LPWSTR / Win32 Pin
CPallini8-Apr-10 9:43
mveCPallini8-Apr-10 9:43 
AnswerRe: LPWSTR / Win32 Pin
Joe Woodbury8-Apr-10 10:57
professionalJoe Woodbury8-Apr-10 10:57 
GeneralRe: LPWSTR / Win32 Pin
Emilio Garavaglia8-Apr-10 21:15
Emilio Garavaglia8-Apr-10 21:15 
GeneralRe: LPWSTR / Win32 Pin
CPallini8-Apr-10 21:24
mveCPallini8-Apr-10 21:24 
GeneralRe: LPWSTR / Win32 Pin
Emilio Garavaglia8-Apr-10 21:42
Emilio Garavaglia8-Apr-10 21:42 
GeneralRe: LPWSTR / Win32 Pin
CPallini8-Apr-10 21:57
mveCPallini8-Apr-10 21:57 
GeneralRe: LPWSTR / Win32 Pin
Fareed Rizkalla8-Apr-10 22:26
Fareed Rizkalla8-Apr-10 22:26 
GeneralRe: LPWSTR / Win32 Pin
Eugen Podsypalnikov8-Apr-10 23:09
Eugen Podsypalnikov8-Apr-10 23:09 
GeneralRe: LPWSTR / Win32 Pin
Fareed Rizkalla8-Apr-10 23:25
Fareed Rizkalla8-Apr-10 23:25 
GeneralRe: LPWSTR / Win32 Pin
Eugen Podsypalnikov8-Apr-10 23:32
Eugen Podsypalnikov8-Apr-10 23:32 
GeneralRe: LPWSTR / Win32 Pin
Fareed Rizkalla9-Apr-10 13:32
Fareed Rizkalla9-Apr-10 13:32 
GeneralRe: LPWSTR / Win32 Pin
Joe Woodbury9-Apr-10 5:38
professionalJoe Woodbury9-Apr-10 5:38 
Questionhow to use multiThread to read and write database? Pin
caiguosen8-Apr-10 5:47
caiguosen8-Apr-10 5:47 
AnswerRe: how to use multiThread to read and write database? Pin
CPallini8-Apr-10 9:38
mveCPallini8-Apr-10 9:38 
QuestionRe: how to use multiThread to read and write database? Pin
David Crow9-Apr-10 3:21
David Crow9-Apr-10 3:21 
AnswerRe: how to use multiThread to read and write database? Pin
caiguosen10-Apr-10 1:42
caiguosen10-Apr-10 1:42 
QuestionRe: how to use multiThread to read and write database? Pin
David Crow12-Apr-10 2:51
David Crow12-Apr-10 2:51 
Questionhow to properly display buttons over an image Pin
genush8-Apr-10 5:38
genush8-Apr-10 5:38 
I have a CFormView where I want to display an image and show some buttons over the image. I get the device context for the view, create a compatible bitmap, use the LPPICTURE Render(*) function to display the image file into the DC, then use BitBlt(*) of CDC to display the image. The buttons are placed onto the form. This kind of works, although if I display another window over the form, or move the cursor into the title bar or the system status bar, all the buttons disappear. I would like to place the buttons dynamically, and tried to use SetWindowPos(*) for one of the buttons. But when I called SetWindowPos(*) for that button, everything (image and other buttons) disappeared. Is there a proper way to display buttons over an image so they don't disappear, and also to do so dynamically?

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.