Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIntegrating OpenCV with MFC in VC 6.0 SP 6 Pin
Vaclav_26-Dec-10 6:32
Vaclav_26-Dec-10 6:32 
AnswerRe: Integrating OpenCV with MFC in VC 6.0 SP 6 Pin
Tony Richards26-Dec-10 9:50
Tony Richards26-Dec-10 9:50 
QuestionHow can I draw an animation on a transparent window using Windows API? Pin
Asaf Pinhassi26-Dec-10 3:42
Asaf Pinhassi26-Dec-10 3:42 
AnswerRe: How can I draw an animation on a transparent window using Windows API? Pin
jk chan26-Dec-10 18:48
jk chan26-Dec-10 18:48 
QuestionShockwave object questions - strange behaviour, very frustrating Pin
sgergo25-Dec-10 23:15
sgergo25-Dec-10 23:15 
Questionresizing a dialog Pin
Krauze25-Dec-10 13:57
Krauze25-Dec-10 13:57 
AnswerRe: resizing a dialog Pin
Richard MacCutchan25-Dec-10 23:10
mveRichard MacCutchan25-Dec-10 23:10 
AnswerRe: resizing a dialog Pin
Maximilien26-Dec-10 4:11
Maximilien26-Dec-10 4:11 
resize : you mean dynamically ? or only when the dialog is created ?

if dynamically, then, Windows User Experience Guidelines says that you need a border to be able to "grab" to something to resize the dialog, and that's only for resizing the dialog frame, not moving and repositioning the content which you will have to do manually.

If you really need to have no border for your dialog, then you need something to "anchor" the mouse position and handle the mouse movements to compute the new dialog frame size.

for example (in pseudo-code ) :

in the handler for LBUTTON_DOWN for the dialog , get and store the mouse position (A) and capture it (Get/SetCapture)
in the handler for LButtON_UP, get the current mouse position (B); compute the difference between A anb B and resize the dialog (SetWindowPos) with the computed diffference.

...

good luck with that.
Watched code never compiles.

QuestionHow to print from a service? Pin
martinergb24-Dec-10 21:19
martinergb24-Dec-10 21:19 
AnswerRe: How to print from a service? Pin
Dr.Walt Fair, PE25-Dec-10 7:54
professionalDr.Walt Fair, PE25-Dec-10 7:54 
GeneralRe: How to print from a service? Pin
martinergb26-Dec-10 2:04
martinergb26-Dec-10 2:04 
GeneralRe: How to print from a service? Pin
Ralf.Bue26-Dec-10 4:50
Ralf.Bue26-Dec-10 4:50 
GeneralRe: How to print from a service? Pin
martinergb26-Dec-10 8:06
martinergb26-Dec-10 8:06 
GeneralRe: How to print from a service? Pin
Ralf.Bue30-Dec-10 8:22
Ralf.Bue30-Dec-10 8:22 
QuestionImage Flicker Pin
john563224-Dec-10 0:31
john563224-Dec-10 0:31 
GeneralRe: Image Flicker Pin
Luc Pattyn24-Dec-10 1:00
sitebuilderLuc Pattyn24-Dec-10 1:00 
AnswerRe: Image Flicker Pin
followait24-Dec-10 5:14
followait24-Dec-10 5:14 
AnswerRe: Image Flicker Pin
LunaticFringe24-Dec-10 7:10
LunaticFringe24-Dec-10 7:10 
AnswerRe: Image Flicker Pin
Stephen Hewitt25-Dec-10 1:11
Stephen Hewitt25-Dec-10 1:11 
AnswerRe: Image Flicker Pin
Rozis25-Dec-10 5:36
Rozis25-Dec-10 5:36 
Questionproblem with outlook application object Pin
dharani24-Dec-10 0:31
dharani24-Dec-10 0:31 
AnswerRe: problem with outlook application object Pin
Richard MacCutchan24-Dec-10 2:31
mveRichard MacCutchan24-Dec-10 2:31 
AnswerRe: problem with outlook application object Pin
Roger Broomfield24-Dec-10 4:19
Roger Broomfield24-Dec-10 4:19 
GeneralRe: problem with outlook application object Pin
Richard MacCutchan24-Dec-10 5:11
mveRichard MacCutchan24-Dec-10 5:11 
GeneralRe: problem with outlook application object Pin
Roger Broomfield24-Dec-10 5:38
Roger Broomfield24-Dec-10 5:38 

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.