Borders & Cursors

Started by
3 comments, last by fury3 23 years, 11 months ago
Hi How do I create a window without a border? I''ve tried using ''CreateWindow()'' and ''CreateWindowEx()'' but neither seem to support borderless windows. Another problem I have is with the cursor: How the heck do I get rid of it when it''s over my window? Thanx in advance
Advertisement
Hello there

In C++ Builder you can just set BorderStyle of the window
= bsNone but im not sure how you do this using the api.

to get rid of the cursor use SetCursor(NULL);
(Cursor = crNone in c++builder)
cheers.
To create a window with no borders, system menu etc. Use
CreateWindow/CreateWindowEx with a window style of WS_POPUP.

Very easy =)
MrF.--Code..reboot..code..reboot..sigh!
Thanx alot

Now only one problem remains: how do I hide the cursor when it''s over the window? Anyone got any ideas?
well, one way is to put:

case WM_SETCURSOR:
SetCursor(FALSE);
return 0;

in your WndProc

- ? -

This topic is closed to new replies.

Advertisement