i already tried that, it is annoying because you can see it show maximized then going down to the taskbar..
thanks
Type: Posts; User: eXistenZ
i already tried that, it is annoying because you can see it show maximized then going down to the taskbar..
thanks
well that is when i create the window.. when i receive a message..
yes, that will always happen when using ShowWindow(SW_MAXIMIZE);
i already tried removing WS_VISIBLE style, it just doesn't help, ShowWindow(SW_MAXIMIZE); shows the window no matter what and...
ah lemme try to explain it again, you know MSN Messenger right? when you receive a message there it shows a window minimized to the taskbar and flashed (FlashWindow()) if that window was not already...
imagine you receive a message from somebody and for that i show a window with the current message minimized, flashed and without any focus taken, if that window was maximized before it was closed it...
hmm but i don't see any maximize parameter there, or am i missing something? sorry if i am..
how could i send a maximize message to my window without using the ShowWindow() function which actually shows the window if i use the SW_MAXIMIZE parameter..?
:(
thats correct, but im using MFC and that code inside a CDialog class so i dont need to specify the handle :P
please isn't there a way to do this? :(
i think M$ didn't think about this one..
hey, i searched everywhere, i want to use ShowWindow(SW_SHOWMINNOACTIVE) but i want the window to be maximized and using something like this:
ShowWindow(SW_SHOWMINNOACTIVE);...
oh don't get me wrong, i wasn't saying that your idea was a bad idea.. just my idea of solving a problem of mine was bad from the beginning.. i just didn't think enough of what i was doing actually.....
actually this was a bad idea.. i actually want a function to check if an IP can not be used over the internet and this is impossible to know.. as there are some other special IP's which could or...
well theres a server with a real IP and theres a client from that server's LAN that connects to the real IP of that server, if you get the IP of the client it will be a private one.. im trying to...
any ideas how to check if an IP is private? is there maybe a function for this that i don't know about?
thanks
i have found a way to make it work good using the SendMessage(WM_NCLBUTTONDOWN, HTCAPTION, 0); line of code in double click events..
void CTEST2Dlg::OnLButtonDblClk(UINT nFlags, CPoint point) ...
oh, this one doesn't but double clicking the second window is like double clicking the tray icon which should be pretty much the same, atleast it reproduces the problem exactly the same.. :P
sorry...
i made a simple test project if you didn't get my problem and never reproduced it, it will say what to do exactly..
edit: please rename it to TEST.zip lol
oh sorry then, i didn't know about that
i still tested on both modeless and modal dialogs and it is the same problem and i handle only WM_CLOSE on them
thanks
thats the difference between making something for money and making something for free and what im making it is for free :P
i wasn't trying to be mean, sorry if i made you think that :P
im just having a lot of problems and it never ends
by the way my application doesn't hide or go to tray when i click the minimize...
it is the main window created modally, why is that so important?
the problem is that CDialog::OnClose() function does something which i don't know (i wish i knew), i deleted that line to prevent...
actually the solution i posted doesn't work good all the time
on double click events it does weird things
if anybody knows a solution for this please post one..
thanks
its just a test program and i placed restore there so it saves me a lot of trouble
i know it never closes unless you end task it but it reproduces the problem like on my main program
try and...
this is just a test project but my program hides the window on Close event and adds it to system tray where it is restored from there.. its like any program that goes to tray when you close it...
ah sorry for not explaining things better, here is my code:
void CTESTDlg::OnClose()
{
ShowWindow(SW_HIDE);
ShowWindow(SW_RESTORE);
// CDialog::OnClose();
}
hi, im using visual c++ 6.0 with MFC and if i minimize my dialog window to the taskbar (not by code) and then use ShowWindow(SW_HIDE); on it, then i use ShowWindow(SW_RESTORE); to show it back again...