| Help plox, Very easy.
I looked around and i found this tut on theoklibrary.
By Noz3001
Ever seen them trainers and patchers with mint window shapes and ****? This is a basic way of reoving the gay tool bar and changing the shape of your window.
You may think it sounds hard.. ITS NOT.
Anyway, simple function I made (I make most of my windows 200x300 size) looks like this:
Code:
void Region()
{
HRGN Region = CreateRoundRectRgn(20, 27, 180, 280, 15, 15);
SetWindowRgn(hWnd, Region, TRUE);
}
I call this at case WM_PAINT and it creates a region on the window with rounded edges. There is a better way to remove the toolbar but I can't be arsed explaining it.
There are a few more basic shapes on MSDN.
The only problem now, is that there is no toolbar to drag th window :/. So, add this to the message handler for your main window:
Code:
case WM_LBUTTONDOWN:
SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0 );
break;
You can now drag it by the window.
But, i can't seem to figure out were to put the codes etc.
Can anyone help me?
|