Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Minimize application from taskbar Pin
Nibu babu thomas4-Jun-06 17:37
Nibu babu thomas4-Jun-06 17:37 
GeneralRe: Minimize application from taskbar Pin
helpcode4-Jun-06 23:51
helpcode4-Jun-06 23:51 
QuestionRe: Minimize application from taskbar Pin
NianHawk17-Jun-06 5:08
NianHawk17-Jun-06 5:08 
AnswerRe: print a bitmap Pin
Hamid_RT4-Jun-06 7:12
Hamid_RT4-Jun-06 7:12 
QuestionHow to lock taskbar in my program Pin
NianHawk4-Jun-06 3:08
NianHawk4-Jun-06 3:08 
AnswerRe: How to lock taskbar in my program Pin
Nibu babu thomas4-Jun-06 18:13
Nibu babu thomas4-Jun-06 18:13 
GeneralRe: How to lock taskbar in my program Pin
NianHawk7-Jun-06 6:38
NianHawk7-Jun-06 6:38 
GeneralRe: How to lock taskbar in my program Pin
Nibu babu thomas7-Jun-06 17:38
Nibu babu thomas7-Jun-06 17:38 
NianHawk wrote:
Hi Tomas,
Your help would be greatly appreciated, in fact I send WM+USER+336 to taskbar, but it didn't work, which make me feel that it can't be done by sending a message.


Thanks.

This works on both Windows XP, 2000...

//custom message
#define <code>WM_USERDEF_LOCKTASKBAR </code>424

static HWND hShellWnd = ::FindWindow(_T("Shell_TrayWnd"), NULL);
        
if(hShellWnd != NULL)
  ::PostMessage(hShellWnd, WM_COMMAND, MAKELONG(<code>WM_USERDEF_LOCKTASKBAR</code>, 0), NULL);	
else
  hShellWnd = ::FindWindow(_T("Shell_TrayWnd"), NULL);
This will work!Smile | :)


Nibu thomas
A Developer

Programming tips[^]  My site[^]

QuestionRe: How to lock taskbar in my program Pin
NianHawk7-Jun-06 19:22
NianHawk7-Jun-06 19:22 
AnswerRe: How to lock taskbar in my program Pin
Nibu babu thomas7-Jun-06 19:30
Nibu babu thomas7-Jun-06 19:30 
QuestionRe: How to lock taskbar in my program Pin
NianHawk17-Jun-06 5:01
NianHawk17-Jun-06 5:01 
AnswerRe: How to lock taskbar in my program Pin
Nibu babu thomas18-Jun-06 17:19
Nibu babu thomas18-Jun-06 17:19 
GeneralRe: How to lock taskbar in my program Pin
NianHawk20-Jun-06 6:39
NianHawk20-Jun-06 6:39 
QuestionDrawing to desktop Pin
Aneurysm004-Jun-06 2:20
Aneurysm004-Jun-06 2:20 
AnswerRe: Drawing to desktop Pin
ThatsAlok4-Jun-06 19:11
ThatsAlok4-Jun-06 19:11 
AnswerRe: Drawing to desktop Pin
FarPointer4-Jun-06 21:09
FarPointer4-Jun-06 21:09 
Questionrecordset problem Pin
SWDevil4-Jun-06 2:04
SWDevil4-Jun-06 2:04 
AnswerRe: recordset problem Pin
Chris Losinger4-Jun-06 4:21
professionalChris Losinger4-Jun-06 4:21 
GeneralRe: recordset problem Pin
SWDevil4-Jun-06 5:08
SWDevil4-Jun-06 5:08 
GeneralRe: recordset problem Pin
Chris Losinger4-Jun-06 5:17
professionalChris Losinger4-Jun-06 5:17 
GeneralRe: recordset problem Pin
SWDevil4-Jun-06 5:39
SWDevil4-Jun-06 5:39 
GeneralRe: recordset problem Pin
Chris Losinger4-Jun-06 5:46
professionalChris Losinger4-Jun-06 5:46 
QuestionDesktop right click menus in Win XP Pin
Anil_vvs4-Jun-06 0:45
Anil_vvs4-Jun-06 0:45 
AnswerRe: Desktop right click menus in Win XP Pin
Sarath C4-Jun-06 1:14
Sarath C4-Jun-06 1:14 
Questionmultiple connection using WinINet?? Pin
AhmedOsamaMoh4-Jun-06 0:09
AhmedOsamaMoh4-Jun-06 0: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.