Click here to Skip to main content
15,908,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cursor color in resource editor Pin
followait11-Dec-07 3:47
followait11-Dec-07 3:47 
GeneralRe: Cursor color in resource editor Pin
Nelek11-Dec-07 22:32
protectorNelek11-Dec-07 22:32 
This is to set the normal white arrow that is always in all MFC-Win32 app by default.


	HCURSOR m_hCursor;   //<--- this is in the header
;
	//Now in the cpp
	m_hCursor=AfxGetApp()->LoadStandardCursor(IDC_ARROW);	// Loading normal cursor
	if (m_hCursor)							// If load works good
		::SetCursor (m_hCursor);				// Change to selected cursor


And here I set my own drawn cursor

m_hCursor=AfxGetApp()->LoadCursor(IDC_SELPOINT); // Loading owner cursor
if (m_hCursor)                      // If load ok
    ::SetCursor (m_hCursor);            // Change to selection cursor


Note that the ID that I use to load my own cursor is the ID that I give to the cursor in my resources editor.

What are you making?

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralRe: Cursor color in resource editor Pin
followait11-Dec-07 23:02
followait11-Dec-07 23:02 
QuestionIs floating point number mathematical integer? Pin
Oliver12310-Dec-07 14:15
Oliver12310-Dec-07 14:15 
AnswerRe: Is floating point number mathematical integer? Pin
followait10-Dec-07 16:38
followait10-Dec-07 16:38 
GeneralRe: Is floating point number mathematical integer? Pin
cp987610-Dec-07 17:11
cp987610-Dec-07 17:11 
AnswerRe: Is floating point number mathematical integer? Pin
cp987610-Dec-07 17:15
cp987610-Dec-07 17:15 
Generaldll question Pin
KellyR10-Dec-07 13:00
KellyR10-Dec-07 13:00 
GeneralInstallSheild Help Please Pin
Trey549810-Dec-07 9:01
Trey549810-Dec-07 9:01 
GeneralRe: InstallSheild Help Please Pin
David Crow10-Dec-07 9:39
David Crow10-Dec-07 9:39 
QuestionCListCtrl SetItemState(...) timing Pin
Doc Lobster10-Dec-07 7:16
Doc Lobster10-Dec-07 7:16 
GeneralRe: CListCtrl SetItemState(...) timing Pin
Nathan Holt at EMOM10-Dec-07 7:37
Nathan Holt at EMOM10-Dec-07 7:37 
GeneralRe: CListCtrl SetItemState(...) timing Pin
CPallini10-Dec-07 9:14
mveCPallini10-Dec-07 9:14 
GeneralDisplaying a " in the string Pin
bigdenny20010-Dec-07 4:53
bigdenny20010-Dec-07 4:53 
GeneralRe: Displaying a " in the string Pin
George L. Jackson10-Dec-07 5:03
George L. Jackson10-Dec-07 5:03 
GeneralRe: Displaying a " in the string Pin
bigdenny20010-Dec-07 8:00
bigdenny20010-Dec-07 8:00 
GeneralRunning a program, and displaying user feedback, without the need to click buttons Pin
maladuk10-Dec-07 4:14
maladuk10-Dec-07 4:14 
GeneralRe: Running a program, and displaying user feedback, without the need to click buttons Pin
CPallini10-Dec-07 4:43
mveCPallini10-Dec-07 4:43 
GeneralRe: Running a program, and displaying user feedback, without the need to click buttons Pin
David Crow10-Dec-07 5:31
David Crow10-Dec-07 5:31 
GeneralSystem Information Pin
Daniel Kanev10-Dec-07 2:33
Daniel Kanev10-Dec-07 2:33 
GeneralRe: System Information Pin
Matthew Faithfull10-Dec-07 2:53
Matthew Faithfull10-Dec-07 2:53 
GeneralRe: System Information Pin
Don Box10-Dec-07 3:02
Don Box10-Dec-07 3:02 
QuestionRe: System Information Pin
David Crow10-Dec-07 3:40
David Crow10-Dec-07 3:40 
GeneralRe: System Information Pin
Stephen Hewitt10-Dec-07 12:51
Stephen Hewitt10-Dec-07 12:51 
GeneralRe: System Information Pin
David Crow11-Dec-07 4:21
David Crow11-Dec-07 4:21 

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.