Click here to Skip to main content
15,878,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Invoke Self-Registration of an ActiveX Pin
David Crow12-Jul-06 9:05
David Crow12-Jul-06 9:05 
GeneralRe: Invoke Self-Registration of an ActiveX Pin
Christopher Stratmann12-Jul-06 9:55
Christopher Stratmann12-Jul-06 9:55 
AnswerRe: Invoke Self-Registration of an ActiveX Pin
Eric Dahlvang12-Jul-06 11:34
Eric Dahlvang12-Jul-06 11:34 
QuestionChecking if a window is minimized Pin
slippnslide12-Jul-06 7:35
slippnslide12-Jul-06 7:35 
AnswerRe: Checking if a window is minimized Pin
David Crow12-Jul-06 7:38
David Crow12-Jul-06 7:38 
GeneralRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 8:50
slippnslide12-Jul-06 8:50 
GeneralRe: Checking if a window is minimized Pin
David Crow12-Jul-06 9:00
David Crow12-Jul-06 9:00 
GeneralRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 9:10
slippnslide12-Jul-06 9:10 
DavidCrow wrote:
What other way is there to check if a window is minimized?

I use this code:

case WM_SIZE:<br />
         {<br />
             if(wParam == SIZE_MINIMIZED)<br />
             {<br />
                 ShowWindow(hWnd, SW_HIDE);<br />
             }<br />
         } break;



DavidCrow wrote:
Is this a User-Defined Message (UDM)? If so, where is it sent from? Without seeing the code in context, it's going to be near impossible to offer anything useful.

Yes, it is. I was following various articles on here and tried various paramters for it. What I have it now at is this:
#define WM_TRAYMESSAGE (WM_USER + 1)

And this is the code I have for filling the structs for NOTIFYICONDATA:
    nid.cbSize = sizeof(NOTIFYICONDATA);<br />
    nid.hWnd = hWnd;<br />
    nid.uID = 0;<br />
    nid.uFlags = NIF_ICON | NIF_TIP;<br />
    nid.uCallbackMessage = WM_TRAYMESSAGE;<br />
    HICON hIco = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MYICON));<br />
    nid.hIcon = hIco;<br />
    strncpy( nid.szTip, "App name", 64 );<br />
<br />
    ShowWindow(hWnd, nCmdShow);<br />
    Shell_NotifyIcon(NIM_ADD, &nid);<br />
<br />
    if(hIco) { DestroyIcon(hIco); }


If you need any more code, I'll post it for you.
QuestionRe: Checking if a window is minimized Pin
David Crow12-Jul-06 10:01
David Crow12-Jul-06 10:01 
AnswerRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 10:05
slippnslide12-Jul-06 10:05 
GeneralRe: Checking if a window is minimized Pin
David Crow12-Jul-06 10:29
David Crow12-Jul-06 10:29 
GeneralRe: Checking if a window is minimized Pin
slippnslide12-Jul-06 11:16
slippnslide12-Jul-06 11:16 
GeneralRe: Checking if a window is minimized Pin
David Crow13-Jul-06 2:31
David Crow13-Jul-06 2:31 
QuestionCLSID..error [modified] urgent pls Pin
RockyJames12-Jul-06 7:26
RockyJames12-Jul-06 7:26 
AnswerRe: CLSID..error [modified] urgent pls Pin
David Crow12-Jul-06 7:37
David Crow12-Jul-06 7:37 
GeneralRe: CLSID..error [modified] urgent pls Pin
RockyJames12-Jul-06 7:39
RockyJames12-Jul-06 7:39 
AnswerRe: CLSID..error [modified] urgent pls [modified] Pin
Neil Van Eps12-Jul-06 8:10
Neil Van Eps12-Jul-06 8:10 
GeneralRe: CLSID..error [modified] urgent pls Pin
RockyJames12-Jul-06 8:17
RockyJames12-Jul-06 8:17 
AnswerRe: CLSID..error [modified] urgent pls Pin
Stephen Hewitt12-Jul-06 13:39
Stephen Hewitt12-Jul-06 13:39 
GeneralRe: CLSID..error [modified] urgent pls Pin
Malli_S12-Jul-06 18:58
Malli_S12-Jul-06 18:58 
GeneralRe: CLSID..error [modified] urgent pls Pin
Stephen Hewitt12-Jul-06 19:04
Stephen Hewitt12-Jul-06 19:04 
Questionabout menu Pin
HOW WHAT12-Jul-06 5:56
HOW WHAT12-Jul-06 5:56 
QuestionRe: about menu Pin
David Crow12-Jul-06 6:35
David Crow12-Jul-06 6:35 
AnswerRe: about menu Pin
valikac12-Jul-06 6:51
valikac12-Jul-06 6:51 
AnswerRe: com basics Pin
RChin12-Jul-06 6:05
RChin12-Jul-06 6:05 

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.