Click here to Skip to main content
15,921,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating a file association with VC++ Pin
Christian Graus1-Oct-06 15:19
protectorChristian Graus1-Oct-06 15:19 
GeneralRe: Creating a file association with VC++ Pin
Mohammad A Gdeisat2-Oct-06 7:44
Mohammad A Gdeisat2-Oct-06 7:44 
GeneralRe: Creating a file association with VC++ Pin
Mark Salsbery4-Oct-06 15:07
Mark Salsbery4-Oct-06 15:07 
AnswerRe: Creating a file association with VC++ Pin
Link20061-Oct-06 16:51
Link20061-Oct-06 16:51 
AnswerRe: Creating a file association with VC++ Pin
Hamid_RT2-Oct-06 9:40
Hamid_RT2-Oct-06 9:40 
Questionstring convertions Pin
Waldermort1-Oct-06 8:02
Waldermort1-Oct-06 8:02 
AnswerRe: string convertions Pin
Waldermort1-Oct-06 8:45
Waldermort1-Oct-06 8:45 
QuestionWin32 Window Boundry Pin
beeejay1-Oct-06 6:44
beeejay1-Oct-06 6:44 
Hello

I am trying to keep a window within a certain bounding rect. So far I am capturing the WM_ENTERSIZEMOVE message within the window procedure and doing this:

boundry is the program defined rect that the user should stay within.
pt is the mouse POINT.
rect is the window RECt.
<br />
test.left = boundry.left + ( pt.x - rect.left );<br />
test.right = boundry.right - ( rect.right - pt.x );<br />
<br />
test.top = boundry.top + ( pt.y - rect.top );<br />
test.bottom = boundry.bottom - ( rect.bottom - pt.y );<br />
<br />
ClipCursor( &test );


There are a few problems that arise, one of them is that depending on where i grab the window, the resulting boundry rect is sometimes off by as much as a few pixels.

Whats the dilly?

AnswerRe: Win32 Window Boundry Pin
Waldermort1-Oct-06 8:06
Waldermort1-Oct-06 8:06 
GeneralRe: Win32 Window Boundry Pin
beeejay1-Oct-06 8:11
beeejay1-Oct-06 8:11 
GeneralRe: Win32 Window Boundry Pin
Waldermort1-Oct-06 8:21
Waldermort1-Oct-06 8:21 
GeneralRe: Win32 Window Boundry Pin
beeejay1-Oct-06 9:38
beeejay1-Oct-06 9:38 
GeneralRe: Win32 Window Boundry Pin
beeejay1-Oct-06 11:34
beeejay1-Oct-06 11:34 
AnswerRe: New To C++ Need Help With Button Code On Form Apps Pin
toxcct1-Oct-06 7:03
toxcct1-Oct-06 7:03 
GeneralRe: New To C++ Need Help With Button Code On Form Apps Pin
Hamid_RT1-Oct-06 7:26
Hamid_RT1-Oct-06 7:26 
Questionunresolved external symbol Pin
marwa_fci1-Oct-06 5:14
marwa_fci1-Oct-06 5:14 
AnswerRe: unresolved external symbol Pin
toxcct1-Oct-06 5:31
toxcct1-Oct-06 5:31 
AnswerRe: unresolved external symbol Pin
susiriss1-Oct-06 21:15
susiriss1-Oct-06 21:15 
GeneralRe: unresolved external symbol Pin
toxcct1-Oct-06 21:28
toxcct1-Oct-06 21:28 
QuestionInvisible console? Pin
overfreeze1-Oct-06 3:44
overfreeze1-Oct-06 3:44 
AnswerRe: Invisible console? Pin
Trollslayer1-Oct-06 4:04
mentorTrollslayer1-Oct-06 4:04 
AnswerRe: Invisible console? Pin
Gary R. Wheeler1-Oct-06 4:34
Gary R. Wheeler1-Oct-06 4:34 
AnswerRe: Invisible console? Pin
David Crow2-Oct-06 3:30
David Crow2-Oct-06 3:30 
QuestionProblem with SetFocus Pin
AnTri1-Oct-06 2:26
AnTri1-Oct-06 2:26 
AnswerRe: Problem with SetFocus Pin
Gary R. Wheeler1-Oct-06 4:37
Gary R. Wheeler1-Oct-06 4:37 

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.