|
Hello Prasad,
thanks very much for answer, i use already this
ON_NOTIFY ( NM_CUSTOMDRAW, IDC_MY_LIST, OnCustomdrawMyList )
to set my own text and background color in CListCtrl.
I seek for member which i have to change row heigth!
regards
break;
-- modified at 9:45 Wednesday 17th January, 2007
|
|
|
|
|
hi every body, salamou alaykom !
how are you ?
I have a question about dateTimePicker, normally this control display the current time of my system but I want that it diplay the time 00:00:00 by defaut and user can insert the time he wants.
is it possible ? thank's a lot and have a nice day
byyyyyyyyyye
zizzzzzzzzzzzzzzz
|
|
|
|
|
zizzzz wrote: ...I want that it diplay the time 00:00:00 by defaut...
So have you called the SetTime() method (with 0 for the time)?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hai,
Please let me know what is the name of the library file needed for wWinmainCRTStartUP in EVC++ And what is the use of wininet.lib and corelibc.lib....Because i am having confusion while using in my coding.
Thanks And Regards
Harshadha
|
|
|
|
|
How do I change the height of the statusbar?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
There is a member variable for a status bar called m_nMinHeight;
If you have subclassed the status bar you can set it in the constructor;
Otherwise you can send the status bar a SB_SETMINHEIGHT message setting the WPARAM to the required height.
|
|
|
|
|
Many thanks.
BTW, after you send the message, you have to call UpdateWindow.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I need to convert the TCHAR value to string.
amit
|
|
|
|
|
this does mean much, but is this ok for you :
std::string str(CT2A(mytchar));
i'm not sure that will work, but as i don't know either what and why you want to do that, i cannot help much.
|
|
|
|
|
Well,thanks
i elborate ,
i have one value which is came from listview
<br />
TCHAR buff[MAX_PATH]={0}; <br />
hwnd = GetDlgItem(hwndParent,IDC_LISTVIEW);<br />
ListView_GetItemText(hwnd,0,0,(LPWSTR)&buff,MAX_PATH);<br />
string FileToUpload = util.ConvertWCHARToString(buff_input);//param is in WCHAR *
i want to use diretly buff converted value into FileToUpload string variable
suppose buff having
buff=_T("c:\xyz.wmv");
then how we will convert it into string.
if possible can you convert it into WCHAR *, it will ok.
otherwise if possible then string.
AMIT
|
|
|
|
|
What's wrong with:
TCHAR buf[256] = _T("Hello World");
wstring str = buf;
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how to find if a particular registry entry is present or not. In one of my project , when the application starts it need to check if a particular registry is present,if present it would follow a different course. Pls help.
Thanks..
vikram
|
|
|
|
|
Have a look at the CRegKey class in MSDN.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
thanks mate... CRegClass proved to be help ... i am using it in my code.. thanks..
~VIKRAM
|
|
|
|
|
Try to open the key with ::RegOpenKeyEx with the security access mask set to REG_QUERY_VALUE to avoid errors due to insufficient rights in case the user is not an administrator or priveliged user. If the call returns ERROR_SUCCESS the key is present and if you're interested in the value of the key you call ::RegQueryValueEx .
Close the opened key with a call to ::RegCloseKey .
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
Thanks Mate...
|
|
|
|
|
|
Cregistry class is helpful.. thanks .. ... but for the time being i have sticked to using CregKey.
~VIKRAM
|
|
|
|
|
I hope you successful
|
|
|
|
|
Hi
int result=CreateDirectory(LPCSTR(Dir_Name),NULL);
The above statement return 0 if i use WCHAR pointer(Dir_Name).
why ?
manu
|
|
|
|
|
manu_2205 wrote: int result=CreateDirectory(LPCSTR(Dir_Name),NULL);
1. Why do you need that LPCSTR there?
2. Is your project unicode aware?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
ya project unicode aware , if i do't write LPCSTR it generate compile time error.
"error C2664: 'CreateDirectoryA' : cannot convert parameter 1 from 'WCHAR *' to 'LPCSTR'"
manu
|
|
|
|
|
manu_2205 wrote: "error C2664: 'CreateDirectoryA' : cannot convert parameter 1 from 'WCHAR *' to 'LPCSTR'"
dont use LPCSTR, but CA2W()
|
|
|
|
|
manu_2205 wrote: 'CreateDirectoryA
If your project is unicode aware, then how is the ANSI version of a function being called? Are you making a call explicitly to the CreateDirectoryA() or are you just calling CreateDirectory() ?
manu_2205 wrote: ya project unicode aware
Now what do you mean by this? Have you replaced _MBCS with _UNICODE in the preprocessor definitions? ( project->settings->c/c++->preprocessor definitions )
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
LPCSTR(Dir_Name) is a bug. You have to convert the WCHAR to LPCSTR in another string.
Maybe you can use CreateDirectoryW( Dir_Name,NULL);//with a big W for WCHAR
Greetings from Germany
|
|
|
|