|
|
See WM_CTLCOLORBTN for button and WM_CTLCOLOREDIT for edit constols
|
|
|
|
|
|
MSDN has examples but see here[^]
|
|
|
|
|
|
Also note that it won't work for buttons unless they are owner-draw buttons.
WM_CTLCOLOR works on edit controls fine.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
When I try to compile my old code in Visual C++ 2005, I get the error message
error C2990: 'Cg2HashTable' : non-class template has already been declared as a class template
with the code
<br />
<br />
template <class lType><br />
class Cg2FixedList;<br />
<br />
template <class keyType, class dataType><br />
class Cg2HashTable;<br />
<br />
template <class KEY, class DATA><br />
class Cg2SortedList;<br />
<br />
<br />
class Cg2DataHandle {<br />
<br />
private:<br />
friend class Cg2FixedList;<br />
friend class Cg2HashTable;<br />
friend class Cg2SortedList;<br />
...............<br />
<br />
How can I fix this? Thanks!
Nacho
|
|
|
|
|
Hello,
I am trying to convert my project to use Visual C++ 2005. However, when I compile my project, I get a lot of warning message like this,
c:\dxsdk\include\d3d9types.h(1385) : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss
How can I fix this? Thanks!
Nacho
|
|
|
|
|
Save the file d3d9types.h in unicode encoding.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Is this the only way, since I have a lot of other files have similar problems, is it means that I need to re-save all those files? Thanks!
Nacho
|
|
|
|
|
Nacho Chip wrote: is it means that I need to re-save all those files?
Yes. Save all such files in unicode encoding. You must have entered unicode characters into those files and so you will need to save it in unicode encoding to avoid data loss.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
|
Hi,
I am having a Help -->"Help on XXX" in my MMC, I am not sure how this menu Item is created.
When I click on this menu Item, the HLP file is not opening.
Please let me know how to open the HLP file?
Thanks,
Nagarjuna
Nagarjuna
|
|
|
|
|
Hi All,
I want to change settings of Internet Explorer programatically:
Select Tools->Internet options->Security tab
Click on customlevel button
UserAuthentication
Logon
Anonymous logon Radio button must be checked
This must be done programatically.
How do i do that?
|
|
|
|
|
For changer settings of internet explorer you can refer to this address on the registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
|
|
|
|
|
Which API to use so that i can change this settings.Particularly the parameters that i have to pass.
Thank u.Your response helped me know few things which i was unaware about.
|
|
|
|
|
|
I had read an article in MSDN for changing the proxy setting of options dialog.
It used :
INTERNET_PER_CONN_OPTION_LIST List;
INTERNET_PER_CONN_OPTION Option[1];
unsigned long nSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
Option[0].dwOption = INTERNET_PER_CONN_PROXY_SERVER;
Option[0].Value.pszValue = "http://myproxy:8080";
List.dwSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
List.pszConnection = NULL;
List.dwOptionCount = 1;
List.pOptions = Option;
if(!InternetSetOption(NULL, INTERNET_OPTION_PER_CONNECTION_OPTION, &List, nSize))
printf("InternetQueryOption failed! \n");
But i was unable to find appropriate details for setting other options of the "options" dialog.
Ex: To set Tools->Internet Options->Security->Localintranet->custom level(button)->Anonymous logon option.
An article in MSDN mentioned that setting registry directly is not recommended.Is there an alternative way to solve this issue.
|
|
|
|
|
|
That source helped me set proxy settings.
I also need to set Tools->Internet Options->Security->Localintranet->custom level(button)->Anonymous logon radio button
How to do that?
|
|
|
|
|
I think david answered to this question,right
|
|
|
|
|
vishnuteja wrote: Anonymous logon Radio button must be checked
Check out the values under the following registry key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\SO\AUTH\LOGON\ANONYMOUS
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
First of all thank u for giving response to my request.But i am unable to get how to use ur solution.
Suppose,i am writing an application which does not work properly if "Anonymous logon" radio button present in Internet options is not checked.So,i want my application to check it before continuing with its normal operation.
But i am unable to get how to do it progamatically in my MFC application.So i want a sample application that sets "Anonymous logon" radio button when i press some button (Say OK button).
Can you provide me a sample application which does that?
(Using something like using InternetSetOption().Not like setting registry manually through RegSetValue("path"))
|
|
|
|
|
Apparently nothing changes under the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings key regarding those radio buttons. Sorry about that.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello all,
I have developed a DLL for HTTPS request. Currently I am printing the output headers and message body. I want to pass this headers and message to the calling application. Can anyone tell me how to do that ?
Thanks for your prompt reply.
Nikhs
Nikhil Trivedi
|
|
|
|