How can i make a popup window like that of msn appearing at lower left corners of screen :confused:
Printable View
How can i make a popup window like that of msn appearing at lower left corners of screen :confused:
Can you post a screenshot of what you mean?
My MSN messenger usually pops up from the lower right.Quote:
Originally Posted by cfrost
Someone asked this question a little while ago:
http://cboard.cprogramming.com/showt...&highlight=msn
Basically what you need to do is create a window and then look in to the AnimateWindow function. Or look in to creating your own timer that will animate the window.
if i am not mistaken .net has some built in stuff for this very thing, but I am probably mistaken
I don't have any direct links, but I know http://www.codeproject.com and http://www.codeguru.com have tutorials on this exact same thing that you wanna know about.
Well i used Animate window and It gave me error i used msdn i told me its decelration is in
winuser.h
i included that but even then it didnt worked
Could you show the code and the error?
It says they are undeclared identifiers
Post the error you got, and the code that caused it.
1. Open up the file where AnimateWindow() is declared, in this case <winuser.h>.
2. Search for "AnimateWindow".
3. You'll find something like:
4. Now, using the name and value of the define you got in step 3 define it appropriately, either above all #includes in your source file or in project settings.Code:#if(SOMEVAR >= 0x0500)
WINUSERAPI
BOOL
WINAPI
AnimateWindow(
IN HWND hWnd,
IN DWORD dwTime,
IN DWORD dwFlags);
#endif /* SOMEVAR >= 0x0500 */
5. Yes, this should be in the documentation rather than having to look in the header file, but them's the breaks.Code:#define SOMEVAR (0x0500)