|
If you are using nested class then consider using 'friend' to control acess to members of the other classes. But you will still need a pointer/reference to access the in the first place.
|
|
|
|
|
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
|
|
|
|
|
Dhiraj kumar Saini wrote: Dont know how to add a check box as a item to a multilist column.
One solution is here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
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.
Thanks In Advance.
Dhiraj Kumar Saini
|
|
|
|
|
Dhiraj kumar Saini wrote: Please help me.
Help you what? Create your application? Read the first thread in this forum titled "How to get an answer to your question". Pay attention to item #2.
|
|
|
|
|
Dhiraj kumar Saini wrote: I want to add such a control in my dialog box which can house several pictures in it...
Use a static control with the SS_BITMAP style.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Heh. The OP had more specs. I think led mike is writing it for him
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Whew! That's a relief. I'd hate for the OP to have to go home this evening without having accomplished anything.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
For write a title on the bottom of image on your program you can use of CDC::(Textout or DrawText) and after any effect on the image you must get a hbitmap of it and use of it on any controls.
|
|
|
|
|
Hello,
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!!
|
|
|
|
|
http://forums.microsoft.com/MSDN/ShowPost.aspx?postid=220223&siteid=1
check above link
|
|
|
|
|
thank you very much.
unbelievable, the path name under tool->option->directories is case sensitivity! I just input the path again with 'GEN', and it works!
best regards
|
|
|
|
|
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
|
|
|
|
|
Hi,
I am using NTGraph contrl an Active X control.
I need to erase a portion of the graph before plotting the new data each time.
But the control provides only cleargraph function which erases the whole graph completely.
Can anyone help me in this regards,
Thanks in advance.
with regards,
Dan
|
|
|
|
|
You better ask that on the author via the message board at the bottom of the article.
|
|
|
|
|
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?
|
|
|
|
|
use Order By in select statement.
|
|
|
|
|
I asked without reapplying select statement...
|
|
|
|
|
Hello,
Even if no process is referring to a DLL after using it for some time, can we still keep it loaded in memory? How?
Software Developer
Sanjay K
|
|
|
|
|
no, a DLL always requires a process to be loaded into else into which memory address space would it go ?
Why would you want to do this ?
|
|
|
|
|
SanjaySMK wrote: Even if no process is referring to a DLL after using it for some time, can we still keep it loaded in memory? How?
Until FreeLibrary() is called, it will remain in your process' address space.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
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.
But what you will achieve with that ?
|
|
|
|
|
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!
|
|
|
|
|
How I can get item text when mouse cross over item?....
When exactly you wnat to retrieve text from List control?
Please write in brief
|
|
|
|