Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: want to add pictures of any type in a dialog box Pin
David Crow19-Sep-07 5:29
David Crow19-Sep-07 5:29 
GeneralRe: want to add pictures of any type in a dialog box Pin
Mark Salsbery19-Sep-07 6:48
Mark Salsbery19-Sep-07 6:48 
GeneralRe: want to add pictures of any type in a dialog box Pin
David Crow19-Sep-07 6:53
David Crow19-Sep-07 6:53 
AnswerRe: want to add pictures of any type in a dialog box Pin
Hamid_RT19-Sep-07 7:29
Hamid_RT19-Sep-07 7:29 
Questionfatal error RC1015: cannot open include file 'winresrc.h' Pin
dadacncn19-Sep-07 3:17
dadacncn19-Sep-07 3:17 
AnswerRe: fatal error RC1015: cannot open include file 'winresrc.h' Pin
shir_k19-Sep-07 3:41
shir_k19-Sep-07 3:41 
GeneralRe: fatal error RC1015: cannot open include file 'winresrc.h' Pin
dadacncn19-Sep-07 3:57
dadacncn19-Sep-07 3:57 
QuestionHow to avoid flickering in list control Pin
shir_k19-Sep-07 2:46
shir_k19-Sep-07 2:46 
Hi,

I have list control whose property is set to
"List1",IDC_CmdResp,"SysListView32",LVS_REPORT |
WS_BORDER | WS_TABSTOP,293,37,146,214,
WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_RIGHT |
WS_EX_STATICEDGE

Am displaying the data read from the serial port in the list control but there is lot of filckering.Below is the code to display the data in list control.Is there any thing am missing in the code.Why there is flickering?More flickering starts when i start deleting the data.If i don't delete i get assert error that maybe due to memory overflow of the list control.Plz help me out.


void CNgpptDialog::ReadSerialData(CString sIn)
{

CString pressure_data;

ptrCmdResp->SetRedraw(false);
pressure_data=sIn;
int counter = ptrCmdResp->GetItemCount();
ptrCmdResp->InsertItem(counter, "");// to insert a row
ptrCmdResp->SetItemText(counter, 0, pressure_data);// column0
ptrCmdResp->EnsureVisible(counter, FALSE); // Scrolls downwords.

if(counter > 150)// I start deleting first data when the number of items in the list control is > 150
{
ptrCmdResp->DeleteItem(0);
}

ptrCmdResp->SetRedraw(true);
int nIndex = ptrCmdResp->GetItemCount();
ptrCmdResp->RedrawItems(nIndex,nIndex);
}

}

Thanks in advance
QuestionTo Erase a portion of a 2D graph Pin
danandu197319-Sep-07 2:41
danandu197319-Sep-07 2:41 
AnswerRe: To Erase a portion of a 2D graph Pin
Cedric Moonen19-Sep-07 3:16
Cedric Moonen19-Sep-07 3:16 
Questionretain sort order Pin
Try19-Sep-07 2:25
Try19-Sep-07 2:25 
AnswerRe: retain sort order Pin
sheshidar19-Sep-07 2:28
sheshidar19-Sep-07 2:28 
GeneralRe: retain sort order Pin
Try19-Sep-07 19:54
Try19-Sep-07 19:54 
QuestionKeeping the DLL loaded Pin
SanjaySMK19-Sep-07 2:22
SanjaySMK19-Sep-07 2:22 
AnswerRe: Keeping the DLL loaded Pin
Jonathan [Darka]19-Sep-07 2:29
professionalJonathan [Darka]19-Sep-07 2:29 
AnswerRe: Keeping the DLL loaded Pin
David Crow19-Sep-07 2:37
David Crow19-Sep-07 2:37 
AnswerRe: Keeping the DLL loaded Pin
nbugalia19-Sep-07 2:40
nbugalia19-Sep-07 2:40 
AnswerRe: Keeping the DLL loaded Pin
Hamid_RT19-Sep-07 7:33
Hamid_RT19-Sep-07 7:33 
QuestionCListCtrl Pin
josip cagalj19-Sep-07 2:08
josip cagalj19-Sep-07 2:08 
AnswerRe: CListCtrl Pin
sheshidar19-Sep-07 2:27
sheshidar19-Sep-07 2:27 
GeneralRe: CListCtrl Pin
josip cagalj19-Sep-07 2:32
josip cagalj19-Sep-07 2:32 
GeneralRe: CListCtrl Pin
Nelek19-Sep-07 2:58
protectorNelek19-Sep-07 2:58 
QuestionSent Message Pin
sunit519-Sep-07 1:56
sunit519-Sep-07 1:56 
AnswerRe: Sent Message Pin
Randor 19-Sep-07 2:11
professional Randor 19-Sep-07 2:11 
GeneralRe: Sent Message [modified] Pin
sunit519-Sep-07 2:35
sunit519-Sep-07 2:35 

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.