I have added a List control as a resource on a dialog box. It is multicolumn and i have been able to set its column headers and width.
Now in my OnIinitDialog function i want to insert first row where the second column should have a check box instead of having any value.
Dont know how to add a check box as a item to a multilist column.
Please help me.
Dhiraj Kumar Saini
-- modified at 9:53 Wednesday 19th September, 2007
I want to add such a control in my dialog box which can house several pictures in it and can decrease and incease in size dynamically as i add pictures in it and also pictures can be of any type.
One thing more which i want is that each picture should have a caption at the bottom as a title of the picture and on taking mouse over it the title hsould change its colour from black to blue.
I f u have problem in understanding what i want to do just see webshot desktop which i am also trying to develop exactly same.
Please help me.
when I compile my project, there is a fatel error "fatal error RC1015: cannot open include file 'winresrc.h". the file is under the directory "Z:\gen_tools\include", and I added the path "Z:\gen_tools\include" in "tools ->options->directories" too. I don't know what can I do with the error. Please help! thanks in advance!!
I have list control whose property is set to
WS_BORDER | WS_TABSTOP,293,37,146,214,
WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_RIGHT |
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)
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
int nIndex = ptrCmdResp->GetItemCount();
I have an VC++ application connected to database. It does the database operations such as searching records, moving to next/previous record, add, update and delete records.
Problem: When i search for records (i.e with certain condition and with sort), i will get the records on the text fields.
For example, i have retrieved 1 2 3 7 9 (using select statement in code.)
These will be stored in recordset. Suppose if i update value 9 to 4. The sort order should be maintained in text fields.. How can i get the sort order (i.e 1 2 3 4 7) without reapplying select statement?
I think that if the process which is using DLL still exist, then the dll will also remain in memory whether you use it or not.
To Remove the dll, use FreeLibrary. But that will only remove dll loaded with LoadLibrary.
From the MSDN: Each process maintains a reference count for each loaded library module. This reference count is incremented each time LoadLibrary is called and is decremented each time FreeLibrary is called.
A DLL module loaded at process initialization due to load-time dynamic linking has a reference count of one. This count is incremented if the same module is loaded by a call to LoadLibrary.
Hi, I'm using this control (report style, single selection, only text, no header, one column) with LVS_EX_TRACKSELECT | LVS_EX_FULLROWSELECT | LVS_EX_ONECLICKACTIVATE.
How I can get item text when mouse cross over item? Is it with LVM_GETHOTITEM message or how?
Thanks for help!