|
Hi,
can anyone please let me know what's the exact difference between subclasswindow and subclassdlgitem in subclassing?
Regards,
KDevloper
|
|
|
|
|
Looking at documentation, I suppose SubclassDlgItem is just a shortcut to the sequence
HWND hMyCtrl = GetDlgItem(IDC_MYCONTROL);
SubclassWindow( hMyCtrl );
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
[My articles]
|
|
|
|
|
Thanks Palini.
Regards,
KDevloper
|
|
|
|
|
i m trying to copy font file from windows font folder but i m not able to set font title name for that file.
|
|
|
|
|
Ashakulhade wrote: set font title name for that file.
Where do you want to set the font title name for the file?
Are you trying to read the font file and then change it's title...
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
no..i just copying the from windows font folder to any directory.
like i copy Arial Black font then its file name is "ariblk.ttf" but i want to give its title as Arial Black.
|
|
|
|
|
no..i just copied font file from fonts folder.like i m copying Arial Black file then i got its name as "ariblk.ttf" but i want set "Arial Black" as its Title instead "ariblk.ttf".
|
|
|
|
|
Im not aure its your answer or no but you can use of EnumFontFamilies or EnumFonts.
|
|
|
|
|
i tried to use it but it is not working..
i need more suggestions.
Thanks,
-Asha
|
|
|
|
|
Why you couldnt? where's problem?
|
|
|
|
|
we are giving support to japanese language for our product. Iam able to dispaly the Japanese string in the MessageBox.But I dont know how to show(override) OK and Cancel buttons in Japanese.
your Advice, will be very helpful to me.
|
|
|
|
|
If your product is UNICODE enabled you won't need to take care of this. The Japanese OS will display the text on the buttons properly.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank u so much Boss.
This is Unicode supported product. But till now we are testing in English OS. So we are able to show all menus Dialogbox strings in Japanese.But Only this Yes NO Cancel in MessageBox are displaying in English.
So now i will test this Application in Japanese OS installed system.
Once again Thanks for sharing ur Knowledge.
Royal.
|
|
|
|
|
Hi,
I want the Connect As dialog to pop up on click of a button. I tried using the WNetDisconnectDialog() in VC98 but get the following linker error error LNK2001: unresolved external symbol _WNetDisconnectDialog@8
Included the following in stdafx.h
#undef _WINNETWK_
#include <winnetwk.h;
but then I get the following errors.
error C2011: '_NETRESOURCEA' : 'struct' type redefinition
error C2011: '_NETRESOURCEW' : 'struct' type redefinition
error C2011: '_CONNECTDLGSTRUCTA' : 'struct' type redefinition
error C2011: '_CONNECTDLGSTRUCTW' : 'struct' type redefinition
error C2011: '_DISCDLGSTRUCTA' : 'struct' type redefinition
error C2011: '_DISCDLGSTRUCTW' : 'struct' type redefinition
error C2011: '_UNIVERSAL_NAME_INFOA' : 'struct' type redefinition
error C2011: '_UNIVERSAL_NAME_INFOW' : 'struct' type redefinition
error C2011: '_REMOTE_NAME_INFOA' : 'struct' type redefinition
error C2011: '_REMOTE_NAME_INFOW' : 'struct' type redefinition
error C2011: '_NETINFOSTRUCT' : 'struct' type redefinition
error C2011: '_NETCONNECTINFOSTRUCT' : 'struct' type redefinition
Can anyone help me solve the problem.
Thanks
Ninoshka
|
|
|
|
|
do you link to mpr.lib?
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
no havent done that. Do i need to include it in linker settings?
|
|
|
|
|
Of course....
What made you think that it could be avoided?
you do get linker errors at compile time after all...
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Member 4549799 wrote: Included the following in stdafx.h
#undef _WINNETWK_
#include <winnetwk.h;>
Why did you undef _WINNETWK_? It was originally defined as an include blocker. Removing the definition causes the include file to be included twice which leads to all the redefinition erros you are seeing.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Hi All
How can i hide file name from Program Files folder?plz help me
|
|
|
|
|
MsmVc wrote:
How can i hide file name from Program Files folder?
?
By setting the file attributes to type "HIDDEN"...
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you see SetFileAttributes?
|
|
|
|
|
Thanks to both of you..Problem solved through your repply post..
thanks once again..
|
|
|
|
|
why we prefer memory comparision(mmcpy) for string apart from values(strcpy)..
trying to enhance my knowledge..
Thanks in advance
vikas da
|
|
|
|
|
memcpy is used to copy a specified number of bytes to a destination and not for comparison and strcpy is used to copy a string to another location ie source to destination.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
sorry... i wrongly mentioned mmcpy and strcpy those should be mmcmp and strcmp...........
can you please re answer my question
vikas da
|
|
|
|