Window Handling in C++
Hi all,
I''m creating a wrapper around GL&DX,
but there are a few things that annoy me, like
not being able to completely control the window.
Here are my questions:
1) How to create a window with no maximize, restore buttons?
2) How do i intercept those buttons calls, and cancel them?
3) How do I cancel the resize, moving of a window?
(i know how to create a window that canot be resized, i''m after some code to just cancel it...)
Thanx all,
Hugo Ferreira
UniteK Future
"Concentrate, and you can see it. If you see it, then it is possible. If it is possible, you can Achieve it."
Don''t reinvent the wheel. Such wrappers already exists (GLUT, SDL, whatever... ).
Unless you KNOW what you''re getting into, use an existing library. I''m sure everybody here has their favorite
(Otherwise... look into the documentation of Windows'' platform SDK (since I assume you''re working on Windows)).
Unless you KNOW what you''re getting into, use an existing library. I''m sure everybody here has their favorite
(Otherwise... look into the documentation of Windows'' platform SDK (since I assume you''re working on Windows)).
hmmm... dude.... THATS NOT WHAT I ASKED!!!
jesus...!!!!
Hugo Ferreira
UniteK Future
"Concentrate, and you can see it. If you see it, then it is possible. If it is possible, you can Achieve it."
jesus...!!!!
Hugo Ferreira
UniteK Future
"Concentrate, and you can see it. If you see it, then it is possible. If it is possible, you can Achieve it."
*sigh*
Not having buttons on the title bar is a parameter to CreateWindow().
Otherwise, what you are looking for are called hooks.
Lookup SetWindowsHookEx() as a starting point.
And don''t "dude" me or I''ll set the Erisian Turkey Curse on you.
Not having buttons on the title bar is a parameter to CreateWindow().
Otherwise, what you are looking for are called hooks.
Lookup SetWindowsHookEx() as a starting point.
And don''t "dude" me or I''ll set the Erisian Turkey Curse on you.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement