Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed urgent assistance Pin
EranC22-Nov-03 1:11
EranC22-Nov-03 1:11 
GeneralRe: Need urgent assistance Pin
JWood22-Nov-03 5:13
JWood22-Nov-03 5:13 
GeneralRe: Need urgent assistance Pin
Ivor S. Sargoytchev22-Nov-03 7:25
Ivor S. Sargoytchev22-Nov-03 7:25 
GeneralRe: Need urgent assistance Pin
JWood22-Nov-03 9:49
JWood22-Nov-03 9:49 
GeneralRe: Need urgent assistance Pin
Ivor S. Sargoytchev22-Nov-03 11:42
Ivor S. Sargoytchev22-Nov-03 11:42 
GeneralRe: Need urgent assistance Pin
BaldwinMartin22-Nov-03 21:42
BaldwinMartin22-Nov-03 21:42 
GeneralEnvironment variables Pin
cberam22-Nov-03 0:23
cberam22-Nov-03 0:23 
QuestionResizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]21-Nov-03 23:43
[ Jûroehn ]21-Nov-03 23:43 
Hi,

Just can't find the answer of this... Unsure | :~


When I want to resize my my Form(no border etc.) I use the following (working) code;

<br />
void __fastcall TMain::ImageMouseMove(TObject *Sender, TShiftState Shift,<br />
      int X, int Y)<br />
{<br />
<br />
  if(Shift.Contains(ssLeft))<br />
  {<br />
      ReleaseCapture();<br />
      Perform(WM_NCLBUTTONDOWN, HTRIGHT, NULL);<br />
  }<br />
<br />
}<br />



Now I want to change the cursor to for example crSizeWE;

I can insert something like this...
if (!overImage) {<br />
Main->Cursor = crSizeWE;<br />
overImage=true;<br />
}

...in the code above and also make an FormMouseMove-event...
if (overImage) {<br />
Main->Cursor = crDefault;<br />
overImage=false;<br />
}

...but that doesn't work when the mouse exits the Form from an Image with the ImageMouseMove-event.


Anybody knows the solution? Am I overlooking something stupid Confused | :confused: .

Thx a Million, Jeroen.
AnswerRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
Ian Darling21-Nov-03 23:58
Ian Darling21-Nov-03 23:58 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]22-Nov-03 0:07
[ Jûroehn ]22-Nov-03 0:07 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
Ian Darling22-Nov-03 0:21
Ian Darling22-Nov-03 0:21 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]22-Nov-03 0:29
[ Jûroehn ]22-Nov-03 0:29 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
Ian Darling22-Nov-03 3:03
Ian Darling22-Nov-03 3:03 
GeneralWin32 Process Pin
cberam21-Nov-03 23:39
cberam21-Nov-03 23:39 
Generalautomatically control Login Dialog on Screen-Saver Pin
semysemy8121-Nov-03 22:26
semysemy8121-Nov-03 22:26 
QuestionHow to restrict the class inheritance.... Pin
Neha21-Nov-03 21:48
Neha21-Nov-03 21:48 
AnswerRe: How to restrict the class inheritance.... Pin
Johnny ²21-Nov-03 22:04
Johnny ²21-Nov-03 22:04 
GeneralRe: How to restrict the class inheritance.... Pin
Neha21-Nov-03 22:13
Neha21-Nov-03 22:13 
AnswerRe: How to restrict the class inheritance.... Pin
markkuk21-Nov-03 22:17
markkuk21-Nov-03 22:17 
GeneralThe End Pin
Boojam21-Nov-03 21:44
sussBoojam21-Nov-03 21:44 
GeneralRe: The End Pin
Johnny ²21-Nov-03 22:06
Johnny ²21-Nov-03 22:06 
GeneralRe: The End Pin
NormDroid22-Nov-03 5:17
professionalNormDroid22-Nov-03 5:17 
GeneralRe: The End Pin
фил4-Dec-03 22:29
фил4-Dec-03 22:29 
QuestionGetting user name?? Pin
Ilamparithi21-Nov-03 21:43
Ilamparithi21-Nov-03 21:43 
AnswerRe: Getting user name?? Pin
valikac22-Nov-03 16:25
valikac22-Nov-03 16:25 

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.