|
You can declare CString Str;.
|
|
|
|
|
thank u,the code works
Raja
|
|
|
|
|
You're welcome.
|
|
|
|
|
I need develop listbox with progressbar
I creating one list box and I put progress bar Each Every Item but here the progress bar not working one by one checking one list box please solve this problem I need to check progress bar one by one in list box
VC++/MFC
|
|
|
|
|
|
I need develop listbox with progressbar
I creating one list box and I put progress bar Each Every Item but here the progress bar not working one by one checking one list box please solve this problem I need to check progress bar one by one in list box
|
|
|
|
|
Dont need to ask again.
|
|
|
|
|
I want to create a property sheet without having any property pages.Is it possible.
Right now i m creating property sheet by adding 1 page.I want to hide the property sheet window after creating it. How can i achieve it?
|
|
|
|
|
Why you want to do this?
Prasad
MS MVP - VC++
|
|
|
|
|
I have very huge code base & it is very tightly coupled.
My requirement is that i want to hide wizard/property sheet on certain
circumstances.
|
|
|
|
|
Have you tried with ShowWindow (SW_HIDE)?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Hi.
When I try to display chinese or other characters in the column of the CListBox, it comes out jibberish. ENglish is fine. Can someone enlighten me why this is the case and how to allow other languages to work in the Clistbox?
Thanks in advance.
Stan the man
|
|
|
|
|
Did you install china fonts on your system?
|
|
|
|
|
I can display correctly everything on buttons and static items. Only the ListBox seems to have this problem. Am not quite sure what is different between this and the other things.
THanks.
Stan the man
|
|
|
|
|
Stan the man wrote: Only the ListBox seems to have this problem
May be it is because the current font in the list box dosent suport unicode. try setting some other fonts to it such as "Arial Unicode MS"
|
|
|
|
|
You have to set the correct character set.
Try this in your "OnInitDialog()":
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT));
lf.lfCharSet = CHINESEBIG5_CHARSET;
strcpy(lf.lfFaceName, "System");
m_font.CreateFontIndirect(&lf);
GetDlgItem(IDC_LIST)->SetFont(&m_font);
where "m_font" is a CFont member variable and IDC_LIST is your CListBox ID.
|
|
|
|
|
THank you everyone. That was the problem. Appreciate the help.
|
|
|
|
|
Hi.
I was wondering if anyone knows if the OnClose will be called when a connection is abnormally disconnected on the other side (power off or ethernet cable disconnected)? It does not seem to get called.
Is there another way or message etc that can tell me if the ethernet is gone during this abnormal condition? I can see that if the ethernet connection is gone, the icon on the task bar seem to know right away but my application does not. Is there an API that can check this?
Thanks in advance.
Stan the man
|
|
|
|
|
I'm developing a game that relies on hitting a Shift key several times.
During testing the Sticky Keys featured popped up and I read somewhere it could be disabled by setting
the 'flags' value of the registry key HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys to zero.
So I set it to zero, but like a dummy, I did not SAVE the original value (possibly it was 26).
I now want to reset it to its original value - I did a very recent Win2000 reinstall, and assumed all default accessibility values.
Would some kind Win2000 user kindly let me know what his/her setting is for this flag - especially if its an install default value - please?
Thanks for the help!
/nick
|
|
|
|
|
the value would be 510.
|
|
|
|
|
Maxim Zarus wrote: the value would be 510.
Thank you Maxim - you just saved me a whole lot of experimenting!!
/nick
|
|
|
|
|
In C++ - What is the keyword "null" (used in C#) or its equivalent
example:
String^ hi="";
hi=null????;
Its is not for String type, it is just an example.
|
|
|
|
|
From MSDN
"NULL is the null-pointer value used with many pointer operations and functions. It is equivalent to 0. NULL is defined in the following header files: CRTDBG.H, LOCALE.H, STDDEF.H, STDIO.H, STDLIB.H, STRING.H, TCHAR.H, TIME.H and WCHAR.H".
|
|
|
|
|
what about when I use the "ref" like this in c#
void Hello(ref Variable^Name){
}
what am I suppose to put instead of that 'ref'?
thank you.
|
|
|
|
|
void Hello(Variable& Name){
}
In C++ you also have pointers so this could also be used:
void Hello(Variable* pName){
}
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|