Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual Studio Pointer Help.. Pin
Michael Pauli13-May-03 12:27
Michael Pauli13-May-03 12:27 
GeneralRe: Visual Studio Pointer Help.. Pin
Dean Goodman13-May-03 12:46
Dean Goodman13-May-03 12:46 
GeneralRe: Visual Studio Pointer Help.. Pin
David Crow14-May-03 3:35
David Crow14-May-03 3:35 
GeneralRe: Visual Studio Pointer Help.. Pin
keb13-May-03 13:03
keb13-May-03 13:03 
GeneralRe: Visual Studio Pointer Help.. Pin
John R. Shaw13-May-03 12:42
John R. Shaw13-May-03 12:42 
Generalmodeless Dlg Pin
MemLeak13-May-03 9:36
MemLeak13-May-03 9:36 
GeneralRe: modeless Dlg Pin
Anonymous13-May-03 10:26
Anonymous13-May-03 10:26 
GeneralRe: modeless Dlg Pin
MAAK13-May-03 21:25
MAAK13-May-03 21:25 
This is another way to do it. To move the dialog the user should drag the dialog caption. you can override the WM_NCHITTEST message and disable the HTCAPTION result from reaching hte system.
the could should be like this
UINT CMyDlg::OnNcHitTest(CPoint point)
{
	//Store the result returned by the dialog's WinProc    
	UINT hitResult = CDialog::OnNcHitTest(point);
	//if the mouse is in the caption bar change the result to HTNOWHERE
	//so the system wouldn't recognize it
	if(hitResult == HTCAPTION)
		return HTNOWHERE;
	//any other result should be returned as it is
	return hitResult;
}

GeneralRe: modeless Dlg Pin
MAAK13-May-03 21:32
MAAK13-May-03 21:32 
GeneralRe: modeless Dlg Pin
Neville Franks13-May-03 23:28
Neville Franks13-May-03 23:28 
GeneralRegion Pin
MemLeak13-May-03 8:12
MemLeak13-May-03 8:12 
GeneralRe: Region Pin
rochmad13-May-03 8:31
rochmad13-May-03 8:31 
GeneralRe: Region Pin
MemLeak13-May-03 8:51
MemLeak13-May-03 8:51 
GeneralRe: Region Pin
John R. Shaw13-May-03 12:58
John R. Shaw13-May-03 12:58 
GeneralDrag & Drop Pin
Mazdak13-May-03 7:38
Mazdak13-May-03 7:38 
GeneralMS DataGrid Control Pin
Lobster B13-May-03 6:59
Lobster B13-May-03 6:59 
GeneralBest Software For Printing Out Code Pin
Mike O'Neill13-May-03 6:23
Mike O'Neill13-May-03 6:23 
GeneralRe: Best Software For Printing Out Code Pin
Neville Franks13-May-03 7:23
Neville Franks13-May-03 7:23 
GeneralImageList_Read & ImageList_Write functions... Pin
Guy Lecomte13-May-03 5:37
Guy Lecomte13-May-03 5:37 
GeneralCRecentFileList Pin
dings13-May-03 5:28
dings13-May-03 5:28 
GeneralCRecentFileList Pin
dings13-May-03 5:21
dings13-May-03 5:21 
GeneralOpening folders Pin
dave_long13-May-03 5:13
dave_long13-May-03 5:13 
GeneralRe: Opening folders Pin
valikac13-May-03 7:54
valikac13-May-03 7:54 
GeneralRe: Opening folders Pin
dave_long13-May-03 9:07
dave_long13-May-03 9:07 
GeneralRe: Opening folders Pin
J. Dunlap13-May-03 9:51
J. Dunlap13-May-03 9:51 

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.