Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with List Control in visual c++ Pin
lolici14-Mar-17 5:23
lolici14-Mar-17 5:23 
QuestionHow to move window with no border using picture control Pin
Premnath Mali9-Mar-17 20:03
professionalPremnath Mali9-Mar-17 20:03 
QuestionRe: How to move window with no border using picture control Pin
Richard MacCutchan9-Mar-17 21:13
mveRichard MacCutchan9-Mar-17 21:13 
AnswerRe: How to move window with no border using picture control Pin
Premnath Mali9-Mar-17 21:46
professionalPremnath Mali9-Mar-17 21:46 
GeneralRe: How to move window with no border using picture control Pin
Richard MacCutchan9-Mar-17 21:57
mveRichard MacCutchan9-Mar-17 21:57 
SuggestionRe: How to move window with no border using picture control Pin
David Crow10-Mar-17 5:49
David Crow10-Mar-17 5:49 
AnswerRe: How to move window with no border using picture control Pin
Randor 16-Mar-17 18:45
professional Randor 16-Mar-17 18:45 
AnswerRe: How to move window with no border using picture control Pin
leon de boer10-Mar-17 16:21
leon de boer10-Mar-17 16:21 
You need to process the mouse messages in your dialog, you have to do all the work because you don't have a frame.

Usually you have a select trigger, lets say that is left mouse click down (WM_LBUTTONDOWN) that sets a flag in your dialog handler.
When that flag is set you process WM_MOUSEMOVE messages to actually move the the window with the mouse.
Then you have a trigger to release, lets say that is left mouse button up (WM_LBUTTONUP) that clears the flag in your dialog handler.
You can confine the triggers to areas on your dialog or the whole dialog just by looking at position of the trigger messages and allowing or ignoring.

That is what the frame handler does and why you can't drag the dialog around without the frame. It also has triggers on the keys to allow you to size and move the window by the keys. The normal frame handler has special areas that turn triggers on/off the top bar allows dragging, the bottom right allows X,Y sizing the sides one direction sizing etc.

On MDI and SDI's they call a global default handler called DefFrameProc with some structures, you can look it up on MSDN. That should give you the detail of what you need to do if you want to complete implementation.

For graphical dragging and the like I only ever do the basic mouse one.
In vino veritas


modified 10-Mar-17 22:32pm.

QuestionMFC C++ Compiler Options difference between the debug and release Pin
ForNow5-Mar-17 15:41
ForNow5-Mar-17 15:41 
QuestionRe: MFC C++ Compiler Options difference between the debug and release Pin
David Crow5-Mar-17 16:25
David Crow5-Mar-17 16:25 
AnswerRe: MFC C++ Compiler Options difference between the debug and release Pin
ForNow5-Mar-17 16:36
ForNow5-Mar-17 16:36 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Richard MacCutchan5-Mar-17 21:02
mveRichard MacCutchan5-Mar-17 21:02 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Munchies_Matt16-Mar-17 6:22
Munchies_Matt16-Mar-17 6:22 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Richard MacCutchan16-Mar-17 6:33
mveRichard MacCutchan16-Mar-17 6:33 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Munchies_Matt16-Mar-17 6:37
Munchies_Matt16-Mar-17 6:37 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Richard MacCutchan16-Mar-17 6:46
mveRichard MacCutchan16-Mar-17 6:46 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Jochen Arndt5-Mar-17 21:22
professionalJochen Arndt5-Mar-17 21:22 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
ForNow6-Mar-17 12:44
ForNow6-Mar-17 12:44 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
David Crow6-Mar-17 2:07
David Crow6-Mar-17 2:07 
GeneralRe: MFC C++ Compiler Options difference between the debug and release Pin
Victor Nijegorodov7-Mar-17 7:11
Victor Nijegorodov7-Mar-17 7:11 
QuestionImageMagick++ - ErrorMissingDelegate at memorry location Pin
Rajeev Raina2-Mar-17 0:46
Rajeev Raina2-Mar-17 0:46 
AnswerRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Jochen Arndt2-Mar-17 1:10
professionalJochen Arndt2-Mar-17 1:10 
GeneralRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Rajeev Raina2-Mar-17 1:52
Rajeev Raina2-Mar-17 1:52 
GeneralRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Jochen Arndt2-Mar-17 2:09
professionalJochen Arndt2-Mar-17 2:09 
GeneralRe: ImageMagick++ - ErrorMissingDelegate at memorry location Pin
Rajeev Raina2-Mar-17 2:45
Rajeev Raina2-Mar-17 2:45 

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.