Click here to Skip to main content
15,916,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AHAHAHA!!!! JSTL Pin
Nemanja Trifunovic24-Mar-04 18:39
Nemanja Trifunovic24-Mar-04 18:39 
GeneralRe: AHAHAHA!!!! JSTL Pin
Curi0us_George24-Mar-04 18:56
Curi0us_George24-Mar-04 18:56 
QuestionOnSize before OnCreate? Pin
soggie24-Mar-04 13:34
soggie24-Mar-04 13:34 
AnswerRe: OnSize before OnCreate? Pin
Christian Graus24-Mar-04 15:15
protectorChristian Graus24-Mar-04 15:15 
AnswerRe: OnSize before OnCreate? Pin
Prakash Nadar24-Mar-04 15:28
Prakash Nadar24-Mar-04 15:28 
GeneralGarbled Japanese Text Pin
Jon Sagara24-Mar-04 12:18
Jon Sagara24-Mar-04 12:18 
GeneralShowing custom cursor when mouse is over a Win32 static control Pin
IGx8924-Mar-04 12:07
IGx8924-Mar-04 12:07 
GeneralRe: Showing custom cursor when mouse is over a Win32 static control Pin
ohadp24-Mar-04 20:20
ohadp24-Mar-04 20:20 
I don't know if this would be simple enough for you, but the standard way of creating 'hyperlinking' controls is :

define your own CMyStatic : public CStatic.

Now override OnNcHitTest and return HTCLIENT, this will cause windows to ask you for a cursor, otherwise it won't, e.g.:

<br />
UINT CMyStatic::OnNcHitTest(CPoint point)<br />
{<br />
	// otherwise<br />
	return HTCLIENT;<br />
}<br />


Now override OnSetCursor and set your hand icon within it, e.g.:

<br />
BOOL CMyStatic::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)<br />
{<br />
	::SetCursor(LoadCursor(NULL, IDC_HAND));<br />
	return TRUE;<br />
}<br />


That's it.
GeneralRe: Showing custom cursor when mouse is over a Win32 static control Pin
IGx8925-Mar-04 3:46
IGx8925-Mar-04 3:46 
Generalis it too late or i do not undestand something Pin
oOomen24-Mar-04 11:50
oOomen24-Mar-04 11:50 
GeneralRe: is it too late or i do not undestand something Pin
axid3j1al24-Mar-04 12:08
axid3j1al24-Mar-04 12:08 
GeneralRe: is it too late or i do not undestand something Pin
Christian Graus24-Mar-04 12:14
protectorChristian Graus24-Mar-04 12:14 
GeneralRe: is it too late or i do not undestand something Pin
Prakash Nadar24-Mar-04 15:23
Prakash Nadar24-Mar-04 15:23 
GeneralRe: is it too late or i do not undestand something Pin
Cedric Moonen24-Mar-04 20:53
Cedric Moonen24-Mar-04 20:53 
Generalerror LNK2001 when linking with templates Pin
Rob Walter24-Mar-04 11:11
Rob Walter24-Mar-04 11:11 
GeneralRe: error LNK2001 when linking with templates Pin
BlackDice24-Mar-04 11:27
BlackDice24-Mar-04 11:27 
GeneralRe: error LNK2001 when linking with templates Pin
Rob Walter24-Mar-04 11:39
Rob Walter24-Mar-04 11:39 
GeneralRe: error LNK2001 when linking with templates Pin
Michael Dunn24-Mar-04 12:00
sitebuilderMichael Dunn24-Mar-04 12:00 
GeneralRe: error LNK2001 when linking with templates Pin
Nemanja Trifunovic24-Mar-04 11:39
Nemanja Trifunovic24-Mar-04 11:39 
QuestionHow to get button in MSN when create a ATL-COM application. Pin
Pankaj Bhalla24-Mar-04 10:57
Pankaj Bhalla24-Mar-04 10:57 
AnswerRe: How to get button in MSN when create a ATL-COM application. Pin
Prakash Nadar24-Mar-04 15:20
Prakash Nadar24-Mar-04 15:20 
GeneralRe: How to get button in MSN when create a ATL-COM application. Pin
Pankaj Bhalla25-Mar-04 11:22
Pankaj Bhalla25-Mar-04 11:22 
GeneralRe: How to get button in MSN when create a ATL-COM application. Pin
Prakash Nadar25-Mar-04 14:33
Prakash Nadar25-Mar-04 14:33 
Generalstring arrays in c++ Pin
mrspam24-Mar-04 10:55
mrspam24-Mar-04 10:55 
GeneralRe: string arrays in c++ Pin
antlers24-Mar-04 11:19
antlers24-Mar-04 11:19 

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.