Click here to Skip to main content
15,884,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading physical memory Pin
Roger Stoltz30-May-06 3:39
Roger Stoltz30-May-06 3:39 
GeneralRe: Reading physical memory Pin
aaaan30-May-06 3:59
aaaan30-May-06 3:59 
AnswerRe: Reading physical memory Pin
Roger Stoltz30-May-06 4:11
Roger Stoltz30-May-06 4:11 
GeneralRe: Reading physical memory Pin
aaaan30-May-06 19:03
aaaan30-May-06 19:03 
GeneralRe: Reading physical memory Pin
Roger Stoltz30-May-06 21:40
Roger Stoltz30-May-06 21:40 
GeneralRe: Reading physical memory Pin
normanS30-May-06 19:06
normanS30-May-06 19:06 
GeneralRe: Reading physical memory Pin
Roger Stoltz30-May-06 21:42
Roger Stoltz30-May-06 21:42 
QuestionBlinking effect in Cwnd child window Pin
aragornx30-May-06 2:17
aragornx30-May-06 2:17 
Hello
I've got problem with blinking window. My application is multi-doc one. One of my view is simple CView with drawing code in OnPaint. This view is repainting every second (when new data is arriving). From this view I'm creating new window which is a child to my current view's frame. Class of this "child" window is inherited by CWnd class. Unfortunately whan my CView is repainting the top window (child window) is blinking. I've used double-buffering technique - and nothing - still the same problem. Here is my code's samples:

1. Making window:
void CBigValueEdit::setVisible( bool b ) {
if ( b == true ) {
if (this->Create( NULL, _T("Test;"), WS_CHILDWINDOW | WS_VISIBLE | WS_BORDER | WS_CAPTION , rect, parent, IDW_BIG_VALUE ) != 0 ) {
this->ShowWindow( SW_SHOW );
this->SetFocus();
visible = true;
calcRects();
setDigitVal();
}
} else {
// wyłącz okienko
visible = false;
this->ShowWindow( SW_HIDE );
this->DestroyWindow();
}
}

2. Double-buffering:
if ( bmpCreated == false ) {
bmpBufor.CreateCompatibleBitmap( dc, rect.Width(), rect.Height() );
vdc.CreateCompatibleDC( dc );
vdc.SelectObject( bmpBufor );
bmpCreated = true;
}

[...]
dc->BitBlt( 0, 0, rect.Width(), rect.Height(), &vdc, 0, 0, SRCCOPY );

3. Making window from main CView class:
ed.setTitle("Set high alarm :");
ed.setRectangle( rect );
ed.setFormat(4,2);
ed.setValue( selectedCounter->getAlarmLowValue() );
ed.setVisible( true );

ed - my class inherited by CWnd...

What;s wrong Where's the catch?
Please - help me...


-=AragornX=-

modified 4-Apr-13 4:07am.

AnswerRe: Blinking effect in Cwnd child window Pin
Optimus Chaos30-May-06 21:05
Optimus Chaos30-May-06 21:05 
GeneralRe: Blinking effect in Cwnd child window Pin
aragornx30-May-06 23:48
aragornx30-May-06 23:48 
QuestionUrgent :- How to Convert char* to LPWSTR Pin
Rocky Marrone30-May-06 2:08
Rocky Marrone30-May-06 2:08 
AnswerRe: Urgent :- How to Convert char* to LPWSTR Pin
Naveen30-May-06 2:12
Naveen30-May-06 2:12 
AnswerRe: Urgent :- How to Convert char* to LPWSTR Pin
Hamid_RT30-May-06 3:40
Hamid_RT30-May-06 3:40 
GeneralRe: Urgent :- How to Convert char* to LPWSTR Pin
PJ Arends30-May-06 7:33
professionalPJ Arends30-May-06 7:33 
GeneralRe: Urgent :- How to Convert char* to LPWSTR Pin
Hamid_RT30-May-06 8:11
Hamid_RT30-May-06 8:11 
AnswerRe: Urgent :- How to Convert char* to LPWSTR Pin
Sarath C30-May-06 4:18
Sarath C30-May-06 4:18 
QuestionData Base data Insertion Problem (SOS..) [modified] Pin
Scorpio30-May-06 1:53
Scorpio30-May-06 1:53 
AnswerRe: Data Base data Insertion Problem (SOS..) [modified] Pin
Steve S30-May-06 4:05
Steve S30-May-06 4:05 
QuestionHow to find the number of lines compiled in C/C++? Pin
Balachander P30-May-06 1:53
Balachander P30-May-06 1:53 
AnswerRe: How to find the number of lines compiled in C/C++? Pin
Ștefan-Mihai MOGA30-May-06 3:08
professionalȘtefan-Mihai MOGA30-May-06 3:08 
AnswerRe: How to find the number of lines compiled in C/C++? Pin
toxcct30-May-06 3:23
toxcct30-May-06 3:23 
QuestionInheritance in C Pin
NiceNaidu30-May-06 1:50
NiceNaidu30-May-06 1:50 
AnswerRe: Inheritance in C Pin
Nemanja Trifunovic30-May-06 2:05
Nemanja Trifunovic30-May-06 2:05 
AnswerRe: Inheritance in C Pin
_AnsHUMAN_ 30-May-06 2:52
_AnsHUMAN_ 30-May-06 2:52 
GeneralRe: Inheritance in C Pin
toxcct30-May-06 3:02
toxcct30-May-06 3:02 

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.