Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I convert to TIFF file format? Pin
Christian Graus12-Jul-06 9:55
protectorChristian Graus12-Jul-06 9:55 
AnswerRe: How can I convert to TIFF file format? Pin
Joe Woodbury12-Jul-06 10:28
professionalJoe Woodbury12-Jul-06 10:28 
GeneralRe: How can I convert to TIFF file format? Pin
Cris13-Jul-06 2:00
Cris13-Jul-06 2:00 
GeneralRe: How can I convert to TIFF file format? Pin
Joe Woodbury13-Jul-06 8:19
professionalJoe Woodbury13-Jul-06 8:19 
AnswerRe: How can I convert to TIFF file format? Pin
earl12-Jul-06 12:42
earl12-Jul-06 12:42 
GeneralRe: How can I convert to TIFF file format? Pin
Cris13-Jul-06 1:45
Cris13-Jul-06 1:45 
GeneralRe: How can I convert to TIFF file format? Pin
earl13-Jul-06 5:12
earl13-Jul-06 5:12 
QuestionPlease,help me with jar-files in java Pin
beganovic_swe12-Jul-06 9:37
beganovic_swe12-Jul-06 9:37 
AnswerRe: Please,help me with jar-files in java Pin
Christian Graus12-Jul-06 9:43
protectorChristian Graus12-Jul-06 9:43 
GeneralRe: Please,help me with jar-files in java Pin
led mike12-Jul-06 9:49
led mike12-Jul-06 9:49 
GeneralRe: Please,help me with jar-files in java Pin
beganovic_swe12-Jul-06 22:33
beganovic_swe12-Jul-06 22:33 
QuestionCrash in MFC extension DLL [modified] Pin
act_x12-Jul-06 8:23
act_x12-Jul-06 8:23 
AnswerRe: Crash in MFC extension DLL Pin
led mike12-Jul-06 9:14
led mike12-Jul-06 9:14 
QuestionInvoke Self-Registration of an ActiveX Pin
Christopher Stratmann12-Jul-06 8:11
Christopher Stratmann12-Jul-06 8:11 
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 

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.