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

C / C++ / MFC

 
GeneralRe: Embedding the Player Control in an MFC Project Pin
Marc Soleda8-Aug-05 5:39
Marc Soleda8-Aug-05 5:39 
GeneralRe: Embedding the Player Control in an MFC Project Pin
Marc Soleda8-Aug-05 7:48
Marc Soleda8-Aug-05 7:48 
GeneralRe: Embedding the Player Control in an MFC Project Pin
c+-8-Aug-05 17:53
c+-8-Aug-05 17:53 
GeneralRe: Embedding the Player Control in an MFC Project Pin
Marc Soleda8-Aug-05 19:23
Marc Soleda8-Aug-05 19:23 
GeneralStringFromCLSID Pin
Alexander M.,8-Aug-05 3:29
Alexander M.,8-Aug-05 3:29 
GeneralRe: StringFromCLSID Pin
Tim Smith8-Aug-05 3:58
Tim Smith8-Aug-05 3:58 
GeneralRe: StringFromCLSID Pin
peterchen8-Aug-05 8:49
peterchen8-Aug-05 8:49 
Generalproblem with Cursor size bigger than 32x32 256 color Pin
DionChen8-Aug-05 3:22
DionChen8-Aug-05 3:22 
Hi, all:

I am trying to create some cursors with bigger than 32x32x256 color. Here is what I did:

I created a simple Dialog Based MFC appication and place a simple button (IDC_BUTTON1) on the dialog.
I created a 96X96x256 color cursor in the Resource Editor: IDC_CURSOR1 ( Deleted the 32x32XMono) .
In the Button1 click event handler, I have the following code:
<br />
void CCursorTestDlg::OnButton1() <br />
{<br />
	::SetCursor(::LoadCursor( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_CURSOR1) ));<br />
	<br />
}<br />

I also handle the WM_SETCURSOR event as
<br />
BOOL CCursorTestDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) <br />
{<br />
	// TODO: Add your message handler code here and/or call default<br />
<br />
	return TRUE;<br />
	<br />
//	return CDialog::OnSetCursor(pWnd, nHitTest, message);<br />
}<br />


After I clicked on the Button1, the cursor changed to the IDC_CURSOR1, but shrinked it to 32x32 size.

What do I do wrong, how can I keep it to my size in the Resource Editor?

Thanks in advance and your help is highly appreciated.

Dion
GeneralRe: problem with Cursor size bigger than 32x32 256 color Pin
PJ Arends8-Aug-05 5:51
professionalPJ Arends8-Aug-05 5:51 
GeneralRe: problem with Cursor size bigger than 32x32 256 color Pin
DionChen8-Aug-05 6:15
DionChen8-Aug-05 6:15 
GeneralRe: problem with Cursor size bigger than 32x32 256 color Pin
DionChen8-Aug-05 8:42
DionChen8-Aug-05 8:42 
Generalobject not created Pin
sayup8-Aug-05 2:49
sayup8-Aug-05 2:49 
GeneralRe: object not created Pin
Jose Lamas Rios8-Aug-05 2:53
Jose Lamas Rios8-Aug-05 2:53 
GeneralRe: object not created Pin
sayup8-Aug-05 3:35
sayup8-Aug-05 3:35 
GeneralRe: object not created Pin
Cedric Moonen8-Aug-05 3:53
Cedric Moonen8-Aug-05 3:53 
GeneralConvert Font Size Pin
HumanOsc8-Aug-05 2:40
HumanOsc8-Aug-05 2:40 
GeneralRe: Convert Font Size Pin
Jose Lamas Rios8-Aug-05 3:03
Jose Lamas Rios8-Aug-05 3:03 
GeneralRe: Convert Font Size Pin
HumanOsc8-Aug-05 7:26
HumanOsc8-Aug-05 7:26 
GeneralRe: Convert Font Size Pin
HumanOsc10-Aug-05 23:19
HumanOsc10-Aug-05 23:19 
Generalhelp me.. Regarding Tapi 3.0 Pin
rajesh_kapure8-Aug-05 2:19
rajesh_kapure8-Aug-05 2:19 
GeneralRe: help me.. Regarding Tapi 3.0 Pin
Eytukan8-Aug-05 4:23
Eytukan8-Aug-05 4:23 
GeneralRe: help me.. Regarding Tapi 3.0 Pin
Michael P Butler8-Aug-05 6:27
Michael P Butler8-Aug-05 6:27 
AnswerRe: help me.. Regarding Tapi 3.0 Pin
Michael P Butler8-Aug-05 6:24
Michael P Butler8-Aug-05 6:24 
GeneralRe: help me.. Regarding Tapi 3.0 Pin
John R. Shaw8-Aug-05 20:15
John R. Shaw8-Aug-05 20:15 
GeneralCalander Control Pin
Ashman8-Aug-05 1:17
Ashman8-Aug-05 1:17 

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.