Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application Crash Pin
Chris Losinger14-Feb-12 3:10
professionalChris Losinger14-Feb-12 3:10 
QuestionRe: Application Crash Pin
pix_programmer14-Feb-12 17:45
pix_programmer14-Feb-12 17:45 
QuestionPicture control Pin
sarfaraznawaz13-Feb-12 23:57
sarfaraznawaz13-Feb-12 23:57 
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 
We have a in-house program written in win32 API. It works OK on Windows XP. When running the program on Windows Vista and 7 however, we found a strange behavior that the toolbar and status bar disappear during client area update. The odd is more pronounced when object tracking is enabled which leads to high refresh rate of client area. This behavior does not occur on XP.
I guess the cause is that the toolbar and status bar is put inside the client area, so they are not redrawn when client area is updated. But I can not figure the issue out.
The main program structure is a typical win32 application found in C. Petzold's book. The toolbar and status bar is created when handing WM_CREATE message.
// Create the toolbar control.
static HWND hWndToolbar;
hWndToolbar = CreateWindowEx(
0, // No extended styles.
TOOLBARCLASSNAME, // Class name for the toolbar.
NULL, // No default text.
WS_CHILD | TBSTYLE_WRAPABLE | TBSTYLE_FLAT | TBSTYLE_LIST, // Styles and defaults.
0, 0, 0, 0, // Standard toolbar size and position.
hWndParent, // Parent window of the toolbar.
NULL /*(HMENU)iToolBarID*/, // Toolbar ID.
hInst, // Current instance.
NULL); // No class data.
// Create statusbar control
static HWND hWndStatusBar;
hWndStatusBar = CreateWindowEx(
0, // no extended styles
STATUSCLASSNAME, // name of status bar class
(LPCTSTR) NULL, // no text when first created
WS_CHILD | WS_VISIBLE, // includes a sizing grip
0, 0, 0, 0, // ignores size and position
hWndParent, // handle to parent window
NULL/*(HMENU)nStatusID*/, // child window identifier
hInst, // handle to application instance
NULL); // no window creation data
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 
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 

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.