Click here to Skip to main content
15,917,926 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Picture control Pin
Jochen Arndt14-Feb-12 0:25
professionalJochen Arndt14-Feb-12 0:25 
QuestionRemove warning "unused parameters" Pin
marca29213-Feb-12 21:53
marca29213-Feb-12 21:53 
AnswerRe: Remove warning "unused parameters" Pin
«_Superman_»13-Feb-12 21:56
professional«_Superman_»13-Feb-12 21:56 
GeneralRe: Remove warning "unused parameters" Pin
marca29213-Feb-12 22:00
marca29213-Feb-12 22:00 
QuestionToolbar and status bar disappear during client area update Pin
Lianqing13-Feb-12 13:30
Lianqing13-Feb-12 13:30 
AnswerRe: Toolbar and status bar disappear during client area update Pin
Richard MacCutchan13-Feb-12 22:25
mveRichard MacCutchan13-Feb-12 22:25 
GeneralRe: Toolbar and status bar disappear during client area update Pin
Lianqing14-Feb-12 2:16
Lianqing14-Feb-12 2:16 
GeneralRe: Toolbar and status bar disappear during client area update Pin
Richard MacCutchan14-Feb-12 5:30
mveRichard MacCutchan14-Feb-12 5:30 
Lianqing wrote:
I use InvalidateRect(hwndParent, NULL, FALSE) to update the client area.

Which means you paint over the entire client area of your window including the space taken by the toolbar and statusbar. This is not the best way to do it. Whether you use a client window or the client space of the main window you need to adjust your sizes to take account of the toolbar and statusbar. The top left of your client space needs to be adjusted by the height of the toolbar and its height by the height of the statusbar. It's generally better to follow the Windows model and use a client window.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman



QuestionFormat double precision Pin
_Flaviu13-Feb-12 7:52
_Flaviu13-Feb-12 7:52 
AnswerRe: Format double precision Pin
Maximilien13-Feb-12 8:09
Maximilien13-Feb-12 8:09 
AnswerRe: Format double precision Pin
Albert Holguin13-Feb-12 9:57
professionalAlbert Holguin13-Feb-12 9:57 
AnswerRe: Format double precision Pin
Chuck O'Toole13-Feb-12 13:22
Chuck O'Toole13-Feb-12 13:22 
AnswerRe: Format double precision Pin
Luke__Chen13-Feb-12 17:52
Luke__Chen13-Feb-12 17:52 
AnswerRe: Format double precision Pin
CPallini13-Feb-12 21:42
mveCPallini13-Feb-12 21:42 
AnswerRe: Format double precision Pin
rana ray14-Feb-12 0:42
rana ray14-Feb-12 0:42 
GeneralRe: Format double precision Pin
_Flaviu14-Feb-12 5:03
_Flaviu14-Feb-12 5:03 
AnswerRe: Format double precision Pin
Chuck O'Toole14-Feb-12 14:10
Chuck O'Toole14-Feb-12 14:10 
JokeRe: Format double precision Pin
Randor 15-Feb-12 13:47
professional Randor 15-Feb-12 13:47 
QuestionDarkoman's SWFLIB v1.1 Higher? Pin
SimonCommon13-Feb-12 5:49
SimonCommon13-Feb-12 5:49 
AnswerRe: Darkoman's SWFLIB v1.1 Higher? Pin
CPallini13-Feb-12 21:46
mveCPallini13-Feb-12 21:46 
QuestionCreate process & IE Pin
_Flaviu13-Feb-12 5:35
_Flaviu13-Feb-12 5:35 
AnswerRe: Create process & IE Pin
Jochen Arndt13-Feb-12 7:11
professionalJochen Arndt13-Feb-12 7:11 
GeneralRe: Create process & IE Pin
_Flaviu13-Feb-12 7:30
_Flaviu13-Feb-12 7:30 
GeneralRe: Create process & IE Pin
_Flaviu13-Feb-12 9:30
_Flaviu13-Feb-12 9:30 
QuestionRe: Create process & IE Pin
David Crow13-Feb-12 10:52
David Crow13-Feb-12 10:52 

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.