|
Your code if working fine.4 th subitem is filled with specific color.
Sudhir Kumar
|
|
|
|
|
In NMLVCUSTOMDRAW structore there is another called NMCUSTOMDRAW. This NMCUSTOMDRAW contains the handle of the DC and rect of the subitem. Using this this DC and rect ucan paint the subitem area.
akt
|
|
|
|
|
|
Hello,
I have made a dll and for each of the classes included in the dll I have used the macro AFX_EXT_CLASS in the declaration of the class.
But if I have a .h file which has only consts then which macro should I use to indicate that this file is in the dll.
Pritha
|
|
|
|
|
Nothing, just include the header file.
|
|
|
|
|
You want to export those consts through dll.
Sudhir Kumar
|
|
|
|
|
Hello,
Thank you for your replies.
yes I want to export those consts through dlls.
Pritha
|
|
|
|
|
prithaa wrote: yes I want to export those consts through dlls.
Since the constants are declared in the header file it self, you don't need to export it. Just include the header file.
|
|
|
|
|
Great ! 1 min
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
|
prithaa wrote: But if I have a .h file which has only consts then which macro should I use to indicate that this file is in the dll.
if you just want to include the const, you just have to include the Header file, you don't have to anything or macro for including const, as contants defination would be available in the header file, I believe, this information would not be exported by DLL.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Thanks for all the replies
|
|
|
|
|
How to know whether the value is changed?
I've tried to override CMFCPropertyGridProperty::OnUpdateValue , but got a problem.
class MyProp : public CMFCPropertyGridProperty
{
...
};
BOOL CMyProp::OnUpdateValue()
{
if (!CMFCPropertyGridProperty::OnUpdateValue())
return FALSE;
if (IsValueChanged()) {
MessageBeep(MB_OK);
}
*m_pValue=GetValue().fltVal;
return TRUE;
}
|
|
|
|
|
I think even if same value is typed.It will return true.Because you tried to change the value .
Sudhir Kumar
|
|
|
|
|
i have a coding were i have to display the strings in the list box and if i select a particular string in the listbox a specific operation is done,i have put all these codings in a button click, but the listing of string in listbox takes place finally after all the operation inside the button click gets over,but i need the listing to be done first,where lies the problem???
for(j=0;j<n;j++)>
{
getlist(j,name); ->function call which fetches name
printf("\n%s\n",name);->this printing takes place
list.AddString((CString)name);
}
</n;j++)>
the below operation is done after the selection but listing doesn't happen
currentindx=list.GetCurSel();
SelectService(currentindx,&callback);
Raja
|
|
|
|
|
Sorry I didn't understand your problem. What do you want?.. as you have said you have put the code for adding string in List box on button click, than it going to happen at button click.
See programming always happen in sequence, so you have to decide sequence of your programming steps!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Can you please make you question more understandible.
Sudhir Kumar
|
|
|
|
|
sudhir_Kumar wrote: Can you please make you question more understandible.
I am sorry , is this question for me or guy above me.. I am little confuse, what to reply ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Why are you populating list box in button click. Can you populate the list box in OnInitDialog?
akt
|
|
|
|
|
Mohanraj D wrote: list.AddString((CString)name);
The cast is unnecessary.
Mohanraj D wrote: the below operation is done after the selection but listing doesn't happen
currentindx=list.GetCurSel();SelectService(currentindx,&callback);
But where are you asking for the text of the selected item? You need to call list.GetText(currentindx, ...) at some point.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Can you more explain,do you need to sort items or you want to select them?
|
|
|
|
|
Hi all...
I am having a string
i.e *.doc,*.xls,*.pdf,*.mdb.
I want to seperate each other..
just like..
.doc
.xls
.pdf
i am not getting how to seperate it...plz give me some idea..
thank you in advance...
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
How about tokenizing the string based on ',' delimiter and then extracting the characters after the '.' to get the extensions. You can tokenize the strings using strtok. There could be better ways of tokenizing the strings using Regular Expressions.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi..
thank you..
its worked..
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Hi..
I am having
_TCHAR *sFileExt;
I wnt to convert it to char[]..
i.e
_TCHAR string[] = SFileExt;
I am getting the error....
Error:cannot convert from '_TCHAR *' to '_TCHAR []
How can i..
tahnk you
mannju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|