Click here to Skip to main content
15,902,745 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1216-Aug-10 9:32
mohit`1216-Aug-10 9:32 
GeneralRe: Invalidate() Error CDialog Pin
Niklas L16-Aug-10 10:22
Niklas L16-Aug-10 10:22 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1216-Aug-10 18:14
mohit`1216-Aug-10 18:14 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1217-Aug-10 9:11
mohit`1217-Aug-10 9:11 
GeneralRe: Invalidate() Error CDialog Pin
Niklas L17-Aug-10 10:33
Niklas L17-Aug-10 10:33 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1218-Aug-10 5:34
mohit`1218-Aug-10 5:34 
GeneralRe: Invalidate() Error CDialog Pin
Niklas L19-Aug-10 10:05
Niklas L19-Aug-10 10:05 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1220-Aug-10 6:27
mohit`1220-Aug-10 6:27 
i don't know if that makes sense or not but somehow i managed to solve that problem.

What I did is.
mytabcontrol was inside of calculator
so whenever i changed something i inform that to mytabcontrol ( i have valid m_hWnd since it's inside calculator )
now all tabs are initialized inside tab control so they wont have problem getting m_hWnd for tabone so if they get called they will inform tab_one to redraw it(invalidate) now problems was if i calls tab_one from tabcontrol , then tab_one will be reinitialzed which will read defaults values of calculaotr so graph will be same.

now i have calcparam which holds all values of calculator inside(calculator)
and tab_one was reading those value. but now i created another calcparam inside tab_one and made sure tab_one read that calcparam not the one from calculator and if i change something in calculator.

it does this
memcpy( &m_tabMyTabCtrl.m_tabPages[i]->CalcParam,&CalcParam,sizeof(CALC_PARAMS));
m_tabMyTabCtrl.m_tabPages[i]->Invalidate( );

// m_tabmytabcontrol is instance of mytabcontrol inside gphview and tabpages is instance of tabone defined in mytabcontrol
that's how i got it work.

anyways thx a lot,

cheers from canada.
GeneralRe: Invalidate() Error CDialog Pin
Niklas L20-Aug-10 9:25
Niklas L20-Aug-10 9:25 
AnswerRe: Invalidate() Error CDialog Pin
KarstenK12-Aug-10 21:44
mveKarstenK12-Aug-10 21:44 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1213-Aug-10 6:09
mohit`1213-Aug-10 6:09 
GeneralRe: Invalidate() Error CDialog Pin
KarstenK15-Aug-10 22:13
mveKarstenK15-Aug-10 22:13 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1216-Aug-10 3:31
mohit`1216-Aug-10 3:31 
GeneralRe: Invalidate() Error CDialog Pin
KarstenK16-Aug-10 3:37
mveKarstenK16-Aug-10 3:37 
GeneralRe: Invalidate() Error CDialog Pin
mohit`1216-Aug-10 6:01
mohit`1216-Aug-10 6:01 
QuestionC++ MFC - DatePickerControl - DTN_DATETIMECHANGE event getting triggered twice when clicked !!!! Pin
Kausik4u12-Aug-10 4:26
Kausik4u12-Aug-10 4:26 
AnswerRe: C++ MFC - DatePickerControl - DTN_DATETIMECHANGE event getting triggered twice when clicked !!!! Pin
Niklas L12-Aug-10 6:18
Niklas L12-Aug-10 6:18 
Questionwave sound not playing properly..sounds different?? [modified] Pin
AmbiguousName12-Aug-10 0:41
AmbiguousName12-Aug-10 0:41 
AnswerRe: wave sound not playing properly..sounds different?? Pin
Maximilien12-Aug-10 3:14
Maximilien12-Aug-10 3:14 
QuestionRe: wave sound not playing properly..sounds different?? PinPopular
David Crow12-Aug-10 3:31
David Crow12-Aug-10 3:31 
AnswerRe: wave sound not playing properly..sounds different?? Pin
Niklas L12-Aug-10 5:37
Niklas L12-Aug-10 5:37 
GeneralRe: wave sound not playing properly..sounds different?? Pin
Richard MacCutchan12-Aug-10 6:15
mveRichard MacCutchan12-Aug-10 6:15 
QuestionRe: wave sound not playing properly..sounds different?? Pin
Niklas L12-Aug-10 6:48
Niklas L12-Aug-10 6:48 
AnswerRe: wave sound not playing properly..sounds different?? Pin
Richard MacCutchan12-Aug-10 9:57
mveRichard MacCutchan12-Aug-10 9:57 
GeneralRe: wave sound not playing properly..sounds different?? Pin
AmbiguousName12-Aug-10 6:32
AmbiguousName12-Aug-10 6:32 

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.