Click here to Skip to main content
15,922,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make VertScrolling a litle bit faster? Pin
josip cagalj26-Nov-07 22:06
josip cagalj26-Nov-07 22:06 
AnswerRe: How to make VertScrolling a litle bit faster? Pin
Iain Clarke, Warrior Programmer23-Nov-07 5:27
Iain Clarke, Warrior Programmer23-Nov-07 5:27 
QuestionMoving a window Pin
kk.tvm22-Nov-07 19:05
kk.tvm22-Nov-07 19:05 
AnswerRe: Moving a window Pin
Hamid_RT22-Nov-07 19:12
Hamid_RT22-Nov-07 19:12 
AnswerRe: Moving a window Pin
chandu00422-Nov-07 19:56
chandu00422-Nov-07 19:56 
AnswerRe: Moving a window Pin
kk.tvm22-Nov-07 21:09
kk.tvm22-Nov-07 21:09 
GeneralRe: Moving a window Pin
pierre_ribery22-Nov-07 21:19
pierre_ribery22-Nov-07 21:19 
GeneralRe: Moving a window Pin
ovidiucucu22-Nov-07 22:33
ovidiucucu22-Nov-07 22:33 
Just a little aside note.

"Moving your window by dragging it by clicking on anywhere on the dialog" is OK in one particular case: it has no menu, no system menu, no maximize/minimize/close button, no scrollbars and is not resizeable.

Returning always HTCAPTION from WM_NCHITTEST message handler leads in the impossibility of using menus,... and all enumerated above.

A little bit better approach is to apply the trick only for the client area.
Here is an example:
UINT CMyDialog::OnNcHitTest(CPoint point) 
{
   UINT nRet = CDialog::OnNcHitTest(point);
   if(HTCLIENT == nRet)
   {
      nRet = HTCAPTION;
   }
   return nRet;
}




Ovidiu Cucu
Microsoft MVP - Visual C++

GeneralRe: Moving a window Pin
kk.tvm23-Nov-07 19:51
kk.tvm23-Nov-07 19:51 
GeneralRe: Moving a window Pin
Marimuthu.r22-Nov-07 22:38
Marimuthu.r22-Nov-07 22:38 
QuestionMemory allocation related query Pin
Sunil Shindekar22-Nov-07 19:03
Sunil Shindekar22-Nov-07 19:03 
AnswerRe: Memory allocation related query Pin
ovidiucucu22-Nov-07 19:45
ovidiucucu22-Nov-07 19:45 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar22-Nov-07 20:13
Sunil Shindekar22-Nov-07 20:13 
AnswerRe: Memory allocation related query [modified] Pin
ovidiucucu22-Nov-07 21:25
ovidiucucu22-Nov-07 21:25 
AnswerRe: Memory allocation related query Pin
KarstenK22-Nov-07 20:35
mveKarstenK22-Nov-07 20:35 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar22-Nov-07 20:43
Sunil Shindekar22-Nov-07 20:43 
AnswerRe: Memory allocation related query Pin
Florin Crişan22-Nov-07 22:24
Florin Crişan22-Nov-07 22:24 
GeneralRe: Memory allocation related query Pin
ovidiucucu22-Nov-07 22:47
ovidiucucu22-Nov-07 22:47 
GeneralRe: Memory allocation related query Pin
Florin Crişan22-Nov-07 22:54
Florin Crişan22-Nov-07 22:54 
JokeRe: Memory allocation related query Pin
ovidiucucu22-Nov-07 23:21
ovidiucucu22-Nov-07 23:21 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar23-Nov-07 0:02
Sunil Shindekar23-Nov-07 0:02 
GeneralRe: Memory allocation related query Pin
Florin Crişan23-Nov-07 0:19
Florin Crişan23-Nov-07 0:19 
GeneralRe: Memory allocation related query Pin
Florin Crişan23-Nov-07 0:20
Florin Crişan23-Nov-07 0:20 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar23-Nov-07 1:31
Sunil Shindekar23-Nov-07 1:31 
AnswerRe: Memory allocation related query Pin
Luc Pattyn23-Nov-07 9:12
sitebuilderLuc Pattyn23-Nov-07 9:12 

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.