Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Member of domain Pin
Robert M Greene31-Mar-04 15:55
Robert M Greene31-Mar-04 15:55 
GeneralTextOut() Pin
ns31-Mar-04 4:49
ns31-Mar-04 4:49 
GeneralRe: TextOut() Pin
Prakash Nadar31-Mar-04 4:54
Prakash Nadar31-Mar-04 4:54 
GeneralRe: TextOut() Pin
ns31-Mar-04 7:03
ns31-Mar-04 7:03 
GeneralRe: TextOut() Pin
grigsoft31-Mar-04 8:29
grigsoft31-Mar-04 8:29 
GeneralRe: TextOut() Pin
monrobot1331-Mar-04 8:39
monrobot1331-Mar-04 8:39 
GeneralRe: TextOut() Pin
GflPower31-Mar-04 13:27
GflPower31-Mar-04 13:27 
GeneralFinding a structures address Pin
Xen3h31-Mar-04 4:27
Xen3h31-Mar-04 4:27 
GeneralRe: Finding a structures address Pin
David Crow31-Mar-04 8:06
David Crow31-Mar-04 8:06 
GeneralRe: Finding a structures address Pin
Prakash Nadar31-Mar-04 14:44
Prakash Nadar31-Mar-04 14:44 
GeneralRe: Finding a structures address Pin
gUrM33T31-Mar-04 16:47
gUrM33T31-Mar-04 16:47 
GeneralRe: Finding a structures address Pin
John R. Shaw31-Mar-04 21:56
John R. Shaw31-Mar-04 21:56 
Questionhow to draw the background bmp for the statusbar? Pin
benben31-Mar-04 3:52
benben31-Mar-04 3:52 
AnswerRe: how to draw the background bmp for the statusbar? Pin
Alexander M.,1-Apr-04 3:44
Alexander M.,1-Apr-04 3:44 
GeneralThank you very much! Pin
benben1-Apr-04 17:23
benben1-Apr-04 17:23 
GeneralWindows Service vs. Sockets Pin
RickyC31-Mar-04 3:42
RickyC31-Mar-04 3:42 
GeneralMessage Pump Missing? Pin
Xiangyang Liu 刘向阳31-Mar-04 4:41
Xiangyang Liu 刘向阳31-Mar-04 4:41 
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.

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.