Click here to Skip to main content
15,925,723 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaloverriding OnReceive problem... Pin
Skryking11-Feb-02 14:01
Skryking11-Feb-02 14:01 
GeneralRe: overriding OnReceive problem... Pin
Tim Smith11-Feb-02 14:42
Tim Smith11-Feb-02 14:42 
GeneralRe: overriding OnReceive problem... Pin
Skryking11-Feb-02 14:59
Skryking11-Feb-02 14:59 
GeneralRe: overriding OnReceive problem... Pin
Skryking11-Feb-02 17:31
Skryking11-Feb-02 17:31 
GeneralRe: overriding OnReceive problem... Pin
Dharminder12-Feb-02 4:07
Dharminder12-Feb-02 4:07 
Generaluse isalpha() or isdigit() Pin
tbbooher11-Feb-02 12:46
tbbooher11-Feb-02 12:46 
GeneralRe: use isalpha() or isdigit() Pin
Tim Smith11-Feb-02 13:02
Tim Smith11-Feb-02 13:02 
Generalproblem setting the mouse cursor on a view Pin
Mr Morden11-Feb-02 12:06
Mr Morden11-Feb-02 12:06 
Hi,

I'm working on a multi-view application and I'm trying to change the mouse cursor when it is moved over one of the views.

I've got the following code in the view:



BOOL CTheView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
::SetCursor(AfxGetApp()->LoadStandardCursor(MAKEINTRESOURCE(m_mouseCursor)));
return TRUE; //Handled
}


I'm doing it this way since I've disabled the class cursor with:



::SetClassLong(this->GetSafeHwnd(), GCL_HCURSOR, NULL);


and initialised the m_mouseCursor attribute with the appropriate system cursor type. [This appears to work since a later attempt to GetClassLong(GCL_HCURSOR) returns NULL.]

However, when I drag the mouse over the view, I get the required cursor flickering with the standard mouse cursor. When the mouse stops moving, the standard mouse cursor is the one displayed. This eliminates the cause being an incorrect cursor id, since the correct cursor actually appears, but overwritten shortly after.

I suspect the problem to be due to the fact that I have a number of views in my application, but the cause is unfortunately not clear.

If anyone can shed any light on this, your help will be much appreciated.




GeneralRe: problem setting the mouse cursor on a view Pin
Christian Graus11-Feb-02 12:11
protectorChristian Graus11-Feb-02 12:11 
GeneralRe: problem setting the mouse cursor on a view Pin
Mr Morden11-Feb-02 13:07
Mr Morden11-Feb-02 13:07 
Generalstep through debugging useless in C++ Pin
tbbooher11-Feb-02 11:59
tbbooher11-Feb-02 11:59 
GeneralRe: step through debugging useless in C++ Pin
Christian Graus11-Feb-02 12:08
protectorChristian Graus11-Feb-02 12:08 
GeneralRe: step through debugging useless in C++ Pin
tbbooher11-Feb-02 12:37
tbbooher11-Feb-02 12:37 
GeneralRe: step through debugging useless in C++ Pin
Christian Graus11-Feb-02 12:39
protectorChristian Graus11-Feb-02 12:39 
GeneralRe: step through debugging useless in C++ Pin
alex.barylski11-Feb-02 15:07
alex.barylski11-Feb-02 15:07 
GeneralRe: step through debugging useless in C++ Pin
11-Feb-02 18:27
suss11-Feb-02 18:27 
QuestionHow to retrieve the name of the domain on Win NT 4.0? Pin
Chen Venkataraman11-Feb-02 9:59
Chen Venkataraman11-Feb-02 9:59 
AnswerRe: How to retrieve the name of the domain on Win NT 4.0? Pin
Joaquín M López Muñoz11-Feb-02 10:32
Joaquín M López Muñoz11-Feb-02 10:32 
GeneralRe: How to retrieve the name of the domain on Win NT 4.0? Pin
Chen Venkataraman11-Feb-02 10:39
Chen Venkataraman11-Feb-02 10:39 
GeneralMemory Allocation problem Pin
ISIS5511-Feb-02 9:24
ISIS5511-Feb-02 9:24 
GeneralRe: Memory Allocation problem Pin
Joaquín M López Muñoz11-Feb-02 9:41
Joaquín M López Muñoz11-Feb-02 9:41 
GeneralRe: Memory Allocation problem Pin
Tim Smith11-Feb-02 9:54
Tim Smith11-Feb-02 9:54 
GeneralRe: Memory Allocation problem Pin
ISIS5511-Feb-02 10:40
ISIS5511-Feb-02 10:40 
GeneralCFile::write | create and Windows 2000/XP Pin
mimi11-Feb-02 8:59
mimi11-Feb-02 8:59 
GeneralRe: CFile::write | create and Windows 2000/XP Pin
Mazdak11-Feb-02 9:40
Mazdak11-Feb-02 9:40 

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.