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

C / C++ / MFC

 
AnswerRe: not getting device inserted notification. Pin
$w0rdf1$h13-Sep-07 3:41
$w0rdf1$h13-Sep-07 3:41 
QuestionRe: not getting device inserted notification. Pin
David Crow13-Sep-07 3:50
David Crow13-Sep-07 3:50 
AnswerRe: not getting device inserted notification. Pin
$w0rdf1$h13-Sep-07 5:06
$w0rdf1$h13-Sep-07 5:06 
GeneralRe: not getting device inserted notification. Pin
Cedric Moonen13-Sep-07 5:09
Cedric Moonen13-Sep-07 5:09 
GeneralRe: not getting device inserted notification. Pin
$w0rdf1$h13-Sep-07 5:27
$w0rdf1$h13-Sep-07 5:27 
GeneralRe: not getting device inserted notification. Pin
Cedric Moonen13-Sep-07 7:21
Cedric Moonen13-Sep-07 7:21 
GeneralRe: not getting device inserted notification. Pin
$w0rdf1$h13-Sep-07 8:01
$w0rdf1$h13-Sep-07 8:01 
QuestionRemoving and adding Caption Bar of a dialog at runtime Pin
naveen.V13-Sep-07 1:26
naveen.V13-Sep-07 1:26 
Can anybody help me help me to remove and add Caption Bar of a dialog at runtime.


I have created a dialog through resource with a caption bar.

I want to remove completely the caption on clicking the Button1 on the dialog and add the caption bar on click of button2 on the dialog.

Though on click of Button1 the caption bar is still there but the dialog is not movable whereas when i click Button2 I am able to move the dialog on selecting the Caption bar.

Can anybody suggest the way where the caption will be completely removed and caption appears as per our requirement.

void CCaptionWndDlg::OnButton1()
{

ModifyStyle(WS_BORDER|WS_CAPTION,0);

CRect aRect;
GetWindowRect(&aRect);

::SetWindowPos(m_hWnd,HWND_TOP,aRect.top,aRect.left,aRect.Width(),aRect.Height(),SWP_NOZORDER | SWP_NOACTIVATE);



}

void CCaptionWndDlg::OnButton2()
{
ModifyStyle(0, WS_BORDER|WS_CAPTION);

CRect aRect;
GetWindowRect(&aRect);
::SetWindowPos(m_hWnd,HWND_TOP,aRect.top,aRect.left,aRect.Width(),aRect.Height(),SWP_NOZORDER | SWP_NOACTIVATE);


}
AnswerRe: Removing and adding Caption Bar of a dialog at runtime Pin
Naveen13-Sep-07 1:36
Naveen13-Sep-07 1:36 
GeneralRe: Removing and adding Caption Bar of a dialog at runtime Pin
naveen.V13-Sep-07 1:59
naveen.V13-Sep-07 1:59 
GeneralRe: Removing and adding Caption Bar of a dialog at runtime Pin
naveen.V13-Sep-07 2:00
naveen.V13-Sep-07 2:00 
GeneralRe: Removing and adding Caption Bar of a dialog at runtime Pin
Nishad S13-Sep-07 2:01
Nishad S13-Sep-07 2:01 
GeneralRe: Removing and adding Caption Bar of a dialog at runtime Pin
Naveen13-Sep-07 2:07
Naveen13-Sep-07 2:07 
AnswerRe: Removing and adding Caption Bar of a dialog at runtime Pin
Nishad S13-Sep-07 1:53
Nishad S13-Sep-07 1:53 
GeneralRe: Removing and adding Caption Bar of a dialog at runtime Pin
naveen.V13-Sep-07 1:58
naveen.V13-Sep-07 1:58 
GeneralRe: Removing and adding Caption Bar of a dialog at runtime Pin
Nishad S13-Sep-07 2:02
Nishad S13-Sep-07 2:02 
QuestionHow to get information about installed codecs ... Pin
_NielsB13-Sep-07 1:21
_NielsB13-Sep-07 1:21 
AnswerRe: How to get information about installed codecs ... Pin
Nelek14-Sep-07 2:05
protectorNelek14-Sep-07 2:05 
QuestionTimeline Control wanted !! Does anybody knows something where can i find one ? Pin
sdancer7513-Sep-07 1:15
sdancer7513-Sep-07 1:15 
AnswerRe: Timeline Control wanted !! Does anybody knows something where can i find one ? Pin
chandu00413-Sep-07 1:19
chandu00413-Sep-07 1:19 
QuestionQuestion about VS6 and multicore cpu's!? Pin
bosfan12-Sep-07 23:04
bosfan12-Sep-07 23:04 
AnswerRe: Question about VS6 and multicore cpu's!? Pin
Naveen12-Sep-07 23:12
Naveen12-Sep-07 23:12 
GeneralRe: Question about VS6 and multicore cpu's!? Pin
bosfan13-Sep-07 0:34
bosfan13-Sep-07 0:34 
AnswerRe: Question about VS6 and multicore cpu's!? Pin
toxcct12-Sep-07 23:39
toxcct12-Sep-07 23:39 
AnswerRe: Question about VS6 and multicore cpu's!? Pin
David Crow13-Sep-07 3:04
David Crow13-Sep-07 3:04 

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.