Skip to main content
gamedev.net
🔒 Locked

Minimizing a window

Started by jharkey 3 replies 400+ views
Original Post
jharkey
jharkey
hello everyone, i have a window that doesnt have a frame(like winamp, or the win media player). it has a set region, and is using owner drawn buttons. can anyone tell me how to minimize the window manually(using my own drawn button), without having the regular minimize button. i cant find a win32 function to do it. thanks
cyberben
cyberben
I believe you can just "SendMessage" with WM_SIZE, and wParam = SIZE_MINIMIZED. You''ll have to put that into what ever language your using.

Try that see if it works.
- Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
cyberben
cyberben
Ooops... I guess the FordPerfect has a better way! Yah he''s looks better! Do that.
Good luck!
- Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
jharkey
jharkey
thanks a lot, this forum is awesome

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.