Click here to Skip to main content
15,927,745 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStandalone MFC program Pin
hdaly10-Jun-04 5:17
hdaly10-Jun-04 5:17 
GeneralRe: Standalone MFC program Pin
Navin10-Jun-04 5:23
Navin10-Jun-04 5:23 
Generaltroubles with templates Pin
Kamis10-Jun-04 5:04
Kamis10-Jun-04 5:04 
GeneralRe: troubles with templates Pin
Diddy10-Jun-04 5:22
Diddy10-Jun-04 5:22 
GeneralActiveX control for Ms Exchange Server info Pin
dels_cpp10-Jun-04 4:24
dels_cpp10-Jun-04 4:24 
GeneralDate/Time Picker 'Enter' key behavior Pin
JYoder10-Jun-04 4:11
JYoder10-Jun-04 4:11 
GeneralRe: Date/Time Picker 'Enter' key behavior Pin
bikram singh10-Jun-04 15:45
bikram singh10-Jun-04 15:45 
GeneralMoving dialog window Pin
marcomars10-Jun-04 3:44
marcomars10-Jun-04 3:44 
Hello I have a MFC dialog based app.

I need the user to move it by dragging in any point.

I tried with this code, but didn't work:

UINT CMainMenu::OnNcHitTest(CPoint point)
{
CRect r;
GetClientRect(&r);
ClientToScreen(&r);

if(r.PtInRect(point))
return HTCAPTION ;

return CDialog::OnNcHitTest(point);
}


Any suggestion about?

Thanks,
Marco.

by the way do you know why (only in release configuration)
i get an error from the application when executing the line

fscanf(fp,"%s",s);

when the line in the file is 9 chars or longer ????? Confused | :confused:

Thanks again Smile | :)
GeneralRe: Moving dialog window Pin
David Crow10-Jun-04 5:32
David Crow10-Jun-04 5:32 
GeneralRe: Moving dialog window Pin
Diddy10-Jun-04 5:35
Diddy10-Jun-04 5:35 
GeneralActive X Control Error Pin
Anonymous10-Jun-04 3:32
Anonymous10-Jun-04 3:32 
GeneralSetGraphicsMode bug? Please try this code Pin
CodeHead10-Jun-04 3:03
CodeHead10-Jun-04 3:03 
GeneralHELP! Winsock problem about the select function... Pin
JoeZhang10-Jun-04 2:49
JoeZhang10-Jun-04 2:49 
GeneralRe: HELP! Winsock problem about the select function... Pin
valikac10-Jun-04 6:16
valikac10-Jun-04 6:16 
GeneralA message of sorry Pin
gamitech10-Jun-04 2:09
gamitech10-Jun-04 2:09 
GeneralUse of ASCII seperators for Windows 98 systems Pin
J.B.10-Jun-04 1:49
J.B.10-Jun-04 1:49 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
Johan Rosengren10-Jun-04 2:41
Johan Rosengren10-Jun-04 2:41 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
J.B.10-Jun-04 4:59
J.B.10-Jun-04 4:59 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
Johan Rosengren10-Jun-04 6:03
Johan Rosengren10-Jun-04 6:03 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
J.B.10-Jun-04 16:48
J.B.10-Jun-04 16:48 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
Johan Rosengren10-Jun-04 19:28
Johan Rosengren10-Jun-04 19:28 
QuestionHow to use lstrcpy? Pin
Rajesh_K_Sharma10-Jun-04 1:34
Rajesh_K_Sharma10-Jun-04 1:34 
AnswerRe: How to use lstrcpy? Pin
Diddy10-Jun-04 1:37
Diddy10-Jun-04 1:37 
AnswerRe: How to use lstrcpy? Pin
jmkhael10-Jun-04 1:55
jmkhael10-Jun-04 1:55 
GeneralResize button on IE toolbar Pin
Hans Ruck10-Jun-04 1:08
Hans Ruck10-Jun-04 1:08 

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.