Click here to Skip to main content
15,887,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Device Context Pin
Richard MacCutchan19-Dec-10 22:45
mveRichard MacCutchan19-Dec-10 22:45 
AnswerRe: Device Context Pin
bleedingfingers20-Dec-10 0:05
bleedingfingers20-Dec-10 0:05 
GeneralRe: Device Context Pin
002comp20-Dec-10 0:49
002comp20-Dec-10 0:49 
GeneralRe: Device Context Pin
Richard MacCutchan20-Dec-10 1:02
mveRichard MacCutchan20-Dec-10 1:02 
QuestionRe: Device Context Pin
bleedingfingers20-Dec-10 1:05
bleedingfingers20-Dec-10 1:05 
AnswerRe: Device Context Pin
002comp20-Dec-10 1:13
002comp20-Dec-10 1:13 
AnswerRe: Device Context Pin
pasztorpisti21-Dec-10 23:36
pasztorpisti21-Dec-10 23:36 
QuestionCToolBar Flickers Pin
janaswamy uday19-Dec-10 18:33
janaswamy uday19-Dec-10 18:33 
Hi All,

I am getting Flicker for Toolbar which is Owner Drawn. I am creating a SplitterWnd which has a Form View in Right Side Pane and TreeView in Leftside Pane. There is no flicer in FormView but when i am trying to Disable the Icons in CToolbar for some Condition it is some times Continuosly Flickers i could not understand why this happens.

Code
----


void CMainFrame::OnUpdateFileDeleteplans(CCmdUI* pCmdUI)
{
bool bExecuteSQLWin = false;

if(bExecuteSQLWin)
pCmdUI->Enable(FALSE);
else
pCmdUI->Enable();

pCmdUI->Enable(CheckOpenPlans()); --> Here i added with a Function CheckOpenPlans().......>==========//

}

bool CMainFrame::CheckOpenPlans()
{
CMDIChildWnd* MyWnd = NULL;
MyWnd = MDIGetActive();
CView* pView = NULL;

if(MyWnd != NULL)
{
pView = (CView*) MyWnd->GetActiveView();
if((pView->IsKindOf(RUNTIME_CLASS(CSelectQueryView)) || pView->IsKindOf(RUNTIME_CLASS(OpenPlansTreeView))))
return false;
else
return true;

}

return true;
}
AnswerRe: CToolBar Flickers Pin
Roger Allen10-Jan-11 1:53
Roger Allen10-Jan-11 1:53 
GeneralRe: CToolBar Flickers Pin
janaswamy uday10-Jan-11 23:36
janaswamy uday10-Jan-11 23:36 
Questionvariable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 16:30
Randy12719-Dec-10 16:30 
AnswerRe: variable 'bool' / header stdbool.h [modified] Pin
Luc Pattyn19-Dec-10 16:59
sitebuilderLuc Pattyn19-Dec-10 16:59 
GeneralRe: variable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 19:38
Randy12719-Dec-10 19:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Luc Pattyn20-Dec-10 3:14
sitebuilderLuc Pattyn20-Dec-10 3:14 
AnswerRe: variable 'bool' / header stdbool.h Pin
T210219-Dec-10 19:38
T210219-Dec-10 19:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Aescleal20-Dec-10 3:55
Aescleal20-Dec-10 3:55 
QuestionWhy VC project won't run on Windows 7 Pin
ed welch19-Dec-10 10:45
ed welch19-Dec-10 10:45 
AnswerRe: Why VC project won't run on Windows 7 Pin
T210219-Dec-10 19:36
T210219-Dec-10 19:36 
GeneralRe: Why VC project won't run on Windows 7 Pin
ed welch20-Dec-10 1:31
ed welch20-Dec-10 1:31 
GeneralRe: Why VC project won't run on Windows 7 Pin
T210220-Dec-10 2:12
T210220-Dec-10 2:12 
QuestionOwner Button Width Pin
john563218-Dec-10 18:19
john563218-Dec-10 18:19 
AnswerRe: Owner Button Width Pin
Maximilien19-Dec-10 1:40
Maximilien19-Dec-10 1:40 
Question890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 1:48
professionalilostmyid218-Dec-10 1:48 
AnswerRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ALLERSLIT18-Dec-10 2:59
ALLERSLIT18-Dec-10 2:59 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 3:19
professionalilostmyid218-Dec-10 3:19 

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.