Click here to Skip to main content
15,905,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Message Pump Missing? Pin
RickyC31-Mar-04 5:59
RickyC31-Mar-04 5:59 
GeneralRe: Windows Service vs. Sockets Pin
Robert M Greene31-Mar-04 16:00
Robert M Greene31-Mar-04 16:00 
GeneralRe: What is "Visual Studio (MSI)"? Pin
Vasiliy Baranov31-Mar-04 3:36
Vasiliy Baranov31-Mar-04 3:36 
GeneralWin 32 error Pin
jetournier31-Mar-04 2:55
jetournier31-Mar-04 2:55 
GeneralRe: Win 32 error Pin
Antti Keskinen31-Mar-04 3:26
Antti Keskinen31-Mar-04 3:26 
GeneralRe: Win 32 error Pin
jetournier1-Apr-04 19:35
jetournier1-Apr-04 19:35 
GeneralSetCursor Pin
ns31-Mar-04 2:46
ns31-Mar-04 2:46 
GeneralRe: SetCursor Pin
Antti Keskinen31-Mar-04 3:23
Antti Keskinen31-Mar-04 3:23 
This sounds very difficult indeed.

Are you certain that it is the cursor length that must change ? Could it be that your cursor can remain a single dot, and then you just purely draw on the device context of the window to achieve your effects ? How about hiding the cursor altogether ?

It is, however, possible to create custom cursor. All you need to do is to create a new, blank icon object and specify two masks for it, AND and XOR. These masks are used to draw the monochrome icon.

For a code example, go to MSDN via this[^] link and expand the second code example there. As you can see, creating run-time icons is a BIG work, but doable.

Read the entire section carefully through before starting, pay especial attention on the truth table used. Then understand that the 4 bytes of each line cover 32 bits of the line (4 * 8 = 32). Then, draw your icon on a paper, and finally, onto the two masks.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: SetCursor Pin
ns31-Mar-04 3:40
ns31-Mar-04 3:40 
GeneralRe: SetCursor Pin
ns31-Mar-04 4:05
ns31-Mar-04 4:05 
GeneralRe: SetCursor Pin
Antti Keskinen31-Mar-04 4:49
Antti Keskinen31-Mar-04 4:49 
GeneralRe: SetCursor Pin
ns31-Mar-04 8:51
ns31-Mar-04 8:51 
GeneralProblems with GetMsgProc & WH_GETMESSAGE using SetWindowsHookEx Pin
triptiarora31-Mar-04 1:57
triptiarora31-Mar-04 1:57 
GeneralMenu Bar Color Pin
olis31-Mar-04 0:57
olis31-Mar-04 0:57 
GeneralRe: Menu Bar Color Pin
ohadp31-Mar-04 2:13
ohadp31-Mar-04 2:13 
GeneralFile Property Pin
hb.sapto nugroho31-Mar-04 0:21
hb.sapto nugroho31-Mar-04 0:21 
GeneralRe: File Property Pin
David Crow31-Mar-04 2:07
David Crow31-Mar-04 2:07 
GeneralRe: File Property Pin
hb.sapto nugroho31-Mar-04 3:07
hb.sapto nugroho31-Mar-04 3:07 
GeneralRe: File Property Pin
David Crow31-Mar-04 3:46
David Crow31-Mar-04 3:46 
GeneralRe: File Property Pin
hb.sapto nugroho31-Mar-04 15:52
hb.sapto nugroho31-Mar-04 15:52 
GeneralRe: File Property Pin
David Crow1-Apr-04 3:12
David Crow1-Apr-04 3:12 
QuestionHow to take screenshots Pin
Anonymous30-Mar-04 23:24
Anonymous30-Mar-04 23:24 
AnswerRe: How to take screenshots Pin
Uwe Keim31-Mar-04 1:26
sitebuilderUwe Keim31-Mar-04 1:26 
GeneralRe: How to take screenshots Pin
Alexander M.,31-Mar-04 2:01
Alexander M.,31-Mar-04 2:01 
GeneralRe: How to take screenshots Pin
Prakash Nadar31-Mar-04 5:06
Prakash Nadar31-Mar-04 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.