Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to make a transparent toolbar which the hot Icon would enlarge when mouse hover on? [modified] Pin
Tcpip200520-Nov-10 17:50
Tcpip200520-Nov-10 17:50 
AnswerRe: How to make a transparent toolbar which the hot Icon would enlarge when mouse hover on? Pin
Code-o-mat21-Nov-10 7:06
Code-o-mat21-Nov-10 7:06 
GeneralRe: How to make a transparent toolbar which the hot Icon would enlarge when mouse hover on? Pin
Tcpip200521-Nov-10 15:08
Tcpip200521-Nov-10 15:08 
GeneralRe: How to make a transparent toolbar which the hot Icon would enlarge when mouse hover on? Pin
Code-o-mat21-Nov-10 22:32
Code-o-mat21-Nov-10 22:32 
QuestionMessage Removed Pin
20-Nov-10 9:51
volvox2120-Nov-10 9:51 
AnswerRe: expression Tree Pin
Sauro Viti20-Nov-10 11:12
professionalSauro Viti20-Nov-10 11:12 
Questionwindows 7 UAC Pin
MsmVc19-Nov-10 22:43
MsmVc19-Nov-10 22:43 
QuestionRe: windows 7 UAC [fixed] Pin
CPallini20-Nov-10 0:01
mveCPallini20-Nov-10 0:01 
Why didn't you check RegQueryValueEx return value?
Anyway I would do:
...
DWORD dwEnable;
size = sizeof(dwEnable);
...
LONG lRet = RegQueryValueEx(pHKey, _T("EnableLUA"), 0, &type, (BYTE*) &dwEnable, &size);
if ( lRet != ERROR_SUCCESS)
{
  // handle error
}
else
{
  if(dwEnable == 1)
  {
    // UAC Enabled
  }
  else
  {
    // UAC Disabled 
  }
}



[added]Thanks to MsmVc for pointing out the mistake[/added]

Smile | :)
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]
modified on Saturday, November 20, 2010 8:20 AM

AnswerRe: windows 7 UAC [modified] Pin
MsmVc20-Nov-10 0:49
MsmVc20-Nov-10 0:49 
AnswerRe: windows 7 UAC Pin
MsmVc20-Nov-10 1:08
MsmVc20-Nov-10 1:08 
GeneralRe: windows 7 UAC Pin
CPallini20-Nov-10 2:34
mveCPallini20-Nov-10 2:34 
QuestionThe difference between new and malloc function Pin
ycc89200919-Nov-10 21:31
ycc89200919-Nov-10 21:31 
AnswerRe: The difference between new and malloc function Pin
Code-o-mat19-Nov-10 21:51
Code-o-mat19-Nov-10 21:51 
AnswerRe: The difference between new and malloc function PinPopular
CPallini19-Nov-10 22:28
mveCPallini19-Nov-10 22:28 
AnswerRe: The difference between new and malloc function PinPopular
Aescleal19-Nov-10 23:36
Aescleal19-Nov-10 23:36 
AnswerRe: The difference between new and malloc function Pin
«_Superman_»22-Nov-10 7:15
professional«_Superman_»22-Nov-10 7:15 
Questiongfh Pin
kongdl19-Nov-10 21:09
kongdl19-Nov-10 21:09 
QuestionHow to call DoDataExchange() of a property page at runtime Pin
lakshman rao19-Nov-10 21:00
lakshman rao19-Nov-10 21:00 
AnswerRe: How to call DoDataExchange() of a property page at runtime Pin
KingsGambit21-Nov-10 17:13
KingsGambit21-Nov-10 17:13 
AnswerRe: How to call DoDataExchange() of a property page at runtime Pin
«_Superman_»22-Nov-10 7:11
professional«_Superman_»22-Nov-10 7:11 
Questiontimeout problem Pin
ALLERSLIT19-Nov-10 10:35
ALLERSLIT19-Nov-10 10:35 
AnswerRe: timeout problem Pin
«_Superman_»19-Nov-10 11:44
professional«_Superman_»19-Nov-10 11:44 
AnswerRe: timeout problem Pin
Moak19-Nov-10 14:26
Moak19-Nov-10 14:26 
QuestionlineOpen() problem in TAPI Pin
AmbiguousName19-Nov-10 8:20
AmbiguousName19-Nov-10 8:20 
QuestionRe: lineOpen() problem in TAPI Pin
CPallini19-Nov-10 9:09
mveCPallini19-Nov-10 9:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.