Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 11:16
David Crow9-Aug-06 11:16 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 17:57
Paul Groetzner9-Aug-06 17:57 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow10-Aug-06 3:30
David Crow10-Aug-06 3:30 
QuestionRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow10-Aug-06 5:09
David Crow10-Aug-06 5:09 
AnswerRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner10-Aug-06 19:22
Paul Groetzner10-Aug-06 19:22 
AnswerRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner11-Aug-06 9:17
Paul Groetzner11-Aug-06 9:17 
QuestionRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow11-Aug-06 9:25
David Crow11-Aug-06 9:25 
QuestionCursor clipped via ClipCursor goes away after right click Pin
rajandpayal9-Aug-06 4:58
rajandpayal9-Aug-06 4:58 
Have a look at following code :

-----------------------------------------------------------------------------------------------------------------------
#include <afx.h>
#include <afxwin.h>
#include <conio.h>
#include <iostream>

using namespace std;

int main( int, char* [] )
{
CRect rc( 100,100, 500, 500 );
CRect rcOld;

CPoint pt;
GetCursorPos(&pt);
cout << "Current Position " << pt.x << ", " << pt.y << endl;
GetClipCursor(&rcOld);

ClipCursor( &rc );

cout << "Press any key to restore.." << endl;
getch();

ClipCursor( &rcOld );

return 0;
}
-----------------------------------------------------------------------------------------------------------------------

Looks foolproof.

Just build and run this application.
You will find that cursor indeed gets clipped in the area specified.

But, just do a right click and all clipping goes away !!!!


How can I resolve this? I dont want the clipped rect to go away till I restore the original rectangle back...
AnswerRe: Cursor clipped via ClipCursor goes away after right click Pin
Michael Dunn9-Aug-06 9:36
sitebuilderMichael Dunn9-Aug-06 9:36 
QuestionHeap allocation from SDRAM Pin
Toni789-Aug-06 4:21
Toni789-Aug-06 4:21 
AnswerRe: Heap allocation from SDRAM Pin
toxcct9-Aug-06 4:34
toxcct9-Aug-06 4:34 
GeneralRe: Heap allocation from SDRAM [modified] Pin
9ine9-Aug-06 5:10
9ine9-Aug-06 5:10 
GeneralRe: Heap allocation from SDRAM Pin
toxcct9-Aug-06 5:16
toxcct9-Aug-06 5:16 
GeneralRe: Heap allocation from SDRAM Pin
Toni789-Aug-06 5:12
Toni789-Aug-06 5:12 
GeneralRe: Heap allocation from SDRAM Pin
Rick York9-Aug-06 6:59
mveRick York9-Aug-06 6:59 
GeneralRe: Heap allocation from SDRAM Pin
Zac Howland9-Aug-06 5:26
Zac Howland9-Aug-06 5:26 
GeneralRe: Heap allocation from SDRAM Pin
Toni789-Aug-06 5:42
Toni789-Aug-06 5:42 
AnswerRe: Heap allocation from SDRAM Pin
Viorel.9-Aug-06 5:04
Viorel.9-Aug-06 5:04 
QuestionHow to declare WindowProc function Pin
mmhu9-Aug-06 3:35
mmhu9-Aug-06 3:35 
AnswerRe: How to declare WindowProc function [modified] Pin
toxcct9-Aug-06 3:36
toxcct9-Aug-06 3:36 
AnswerRe: How to declare WindowProc function [modified] Pin
Sarath C9-Aug-06 3:58
Sarath C9-Aug-06 3:58 
GeneralRe: How to declare WindowProc function Pin
toxcct9-Aug-06 4:13
toxcct9-Aug-06 4:13 
GeneralRe: How to declare WindowProc function Pin
Sarath C9-Aug-06 4:16
Sarath C9-Aug-06 4:16 
AnswerRe: How to declare WindowProc function Pin
Vipin Aravind9-Aug-06 5:50
Vipin Aravind9-Aug-06 5:50 
GeneralRe: How to declare WindowProc function Pin
toxcct9-Aug-06 5:53
toxcct9-Aug-06 5:53 

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.