|
The row height is the greater of the height of a row of text and the height of the image list, plus a couple pixels for padding. As David said, if you need precise control, you'll need to use owner draw.
|
|
|
|
|
template <class t=""> <br />
class CProtectedVariable <br />
{<br />
CProtectedVariable()<br />
{<br />
} ; <br />
<br />
~CProtectedVariable()<br />
{<br />
}<br />
<br />
protected :<br />
T m_Var ; <br />
<br />
} ; </class>
when i do this and include this another class as a member. I am getting a few compiler errors
#include "Protected.h" <br />
class OutSideClass <br />
{<br />
protected :<br />
CProtectedVariable<bool> m_initState ; <br />
};</bool>
error C2248: 'CProtectedVariable<t>::CProtectedVariable' : cannot access private member declared in class 'CProtectedVariable<t>'<br />
1> with<br />
1> [<br />
1> T=bool<br />
1> ]</t></t>
What am I missing here ?
Engineering is the effort !
|
|
|
|
|
OutSideClass cannot instantiate its m_initState member because CProtectedVariable constructor is private (private is the default access specifier for a class). You may change
template <class T>
class CProtectedVariable
{
CProtectedVariable()
..
};
into
template <class T>
class CProtectedVariable
{
public:
CProtectedVariable()
..
};
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
ahh that was silly. Sorry for bothering u guys . Never thought it was an access issue !
Engineering is the effort !
|
|
|
|
|
act_x wrote: What am I missing here ?
Code inside of <> brackets. Remove the < bracket and click the < button above the smileys instead.
You might also consider using <pre> instead of <code>, too.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I am using the mschart C++ charting control. And I was looking to format a regression line for the chart- currently, it only allows me to display the linear regression stat-line.
Is there a way to customise the trend-line to be logarithmic, and display the equation on chart ?
Thanks,
Mukund
|
|
|
|
|
Any idea/trick to Access m_nIDHelp (resource Id) of active dialog from CMainFrame class.
Able to get the handle of active window but unable to access m_nIDHelp, since it is protected in the base class CDialog.
pls let me know incase u have something regarding this
Thanks..
|
|
|
|
|
Why don't you inherit CDialog?
If it's protected you can access it from a member function of a derived class.
rotter
|
|
|
|
|
Thank you for your responce,
ya we can do that, But I am Iooking for some working around, with out distrubing the dervied class,
Getting it from active window handle, from MainFram.. I belive I am a bit clear now..
Thanks
|
|
|
|
|
I Used ShowWindow(SW_HIDE) it hide the dialog but at the inital it popup
how to avoid this .
Thanks in advance
|
|
|
|
|
vicky00000 wrote: I Used ShowWindow(SW_HIDE) it hide the dialog but at the inital it popup
how to avoid this
According to MSDN, the SW_HIDE is ignored during the 1st call when the dialog is about to pop up.
ShowWindow[^]
The first time an application calls ShowWindow, it should use the WinMain function's nCmdShow parameter as its nCmdShow parameter. Subsequent calls to ShowWindow must use one of the values in the given list, instead of the one specified by the WinMain function's nCmdShow parameter.
As noted in the discussion of the nCmdShow parameter, the nCmdShow value is ignored in the first call to ShowWindow if the program that launched the application specifies startup information in the structure. In this case, ShowWindow uses the information specified in the STARTUPINFO structure to show the window.
Maxwell Chen
|
|
|
|
|
Is there any way to update STARTUPINFO structure ?
Thanks for your replay
|
|
|
|
|
And the reason is: If it worked, then no target window would receive messages.
There is a solution for this: To make your application hide to systray.
Maxwell Chen
|
|
|
|
|
vicky00000 wrote: I Used ShowWindow(SW_HIDE) it hide the dialog but at the inital it popup
how to avoid this .
don't call DoModal until you want it to show.
|
|
|
|
|
Override the OnWindowPosChanging() method with:
if (! m_bVisible)
lpwndpos->flags &= ~SWP_SHOWWINDOW;
CDialog::OnWindowPosChanging(lpwndpos); Just before calling ShowWindow(SW_SHOW) , set m_bVisible to true .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thank you very much DavidCrow I solve my problem with the help of you
Thanks
|
|
|
|
|
please let me know how to open an .mdb (MS Access) file from a VC6.0 application .
thanks in advance .
aanandi
|
|
|
|
|
Use ShellExecute(..., "open", "file.mdb", ...) .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Do you want to connect to an Access database?
Check in MSDN the following classes:
CDatabase
CRecordset
or
CDaoDatabase
CDaoRecordset
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
i just want to open an already created .mdb file from an application in VC6 .
anyways thank you .
|
|
|
|
|
If you want to read access files of your program did you see Database[^]?
|
|
|
|
|
Hi everybody,
I see how the messages travels down in the own application.
But a special key combination (Ctrl+Shift+R) should launch a tool into my application,
but it opens a functionality of another application ...
How can i route the message that it will directly traited by my own application?
Big thanks for any help
|
|
|
|
|
Use RegisterHotKey(HWND hWnd,int id,UINT fsModifiers,UINT vk) to register global hotkeys.
Then handle the message WM_HOTKEY to do what you want.
When you don't need your hotkey anymore, call UnregisterHotKey(HWND hWnd,int id);
rotter
|
|
|
|
|
Are you using an accelerator table to catch the Ctrl+Shift+R key?
If no then that's where I would start.
AliR.
Visual C++ MVP
|
|
|
|