Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Child Dialog scrollbars Pin
Tarek Jabri1-May-06 18:39
Tarek Jabri1-May-06 18:39 
Questionhow to save the value/string of CFlexgrid cells as a file onto hard disk? Pin
zeus_master1-May-06 16:56
zeus_master1-May-06 16:56 
AnswerRe: how to save the value/string of CFlexgrid cells as a file onto hard disk? Pin
Nibu babu thomas1-May-06 19:16
Nibu babu thomas1-May-06 19:16 
GeneralRe: how to save the value/string of CFlexgrid cells as a file onto hard disk? Pin
zeus_master1-May-06 21:01
zeus_master1-May-06 21:01 
GeneralRe: how to save the value/string of CFlexgrid cells as a file onto hard disk? Pin
Nibu babu thomas1-May-06 21:06
Nibu babu thomas1-May-06 21:06 
GeneralRe: how to save the value/string of CFlexgrid cells as a file onto hard disk? Pin
venadder2-May-06 6:26
venadder2-May-06 6:26 
GeneralRe: how to save the value/string of CFlexgrid cells as a file onto hard disk? Pin
venadder2-May-06 6:29
venadder2-May-06 6:29 
Questiondialog button disabled !!!! Pin
venadder1-May-06 15:05
venadder1-May-06 15:05 
Hi,
I have an MDI MFC VS2005 app. I added a dialog bar in resource view and changed the basze class from CDialog to CDialogBar.

I use following code to create the dialogbar.

Now it is created fine and it aligns at bottom as intended, but all the buttons on the dialogbar are disabled!!!.

What's going on here?


int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;

EnableDocking(CBRS_ALIGN_ANY);
m_launchbar.Create( this, IDD_LAUNCHBAR, CBRS_BOTTOM , IDD_LAUNCHBAR );

}

In addition to the above problem the OnShowWindow is fired only when exiting the app and never when the app is started.


IMPLEMENT_DYNAMIC(CLaunchbar, CDialogBar)

CLaunchbar::CLaunchbar(CWnd* pParent /*=NULL*/)
: CDialogBar()
{

}

CLaunchbar::~CLaunchbar()
{
}

void CLaunchbar::DoDataExchange(CDataExchange* pDX)
{
CDialogBar::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LBREXITAPP, m_lbrExitApp);
}


BEGIN_MESSAGE_MAP(CLaunchbar, CDialogBar)
ON_WM_SHOWWINDOW( )
ON_BN_CLICKED(IDC_LBREXITAPP, &CLaunchbar::OnBnClickedLbrexitapp)
END_MESSAGE_MAP()


// CLaunchbar message handlers
void CLaunchbar::OnShowWindow( BOOL bShow, UINT nStatus )
{

}
void CLaunchbar::OnBnClickedLbrexitapp()
{
// TODO: Add your control notification handler code here
}


Any help please?

AnswerRe: dialog button disabled !!!! Pin
Nibu babu thomas1-May-06 17:58
Nibu babu thomas1-May-06 17:58 
GeneralRe: dialog button disabled !!!! Pin
venadder2-May-06 6:24
venadder2-May-06 6:24 
GeneralRe: dialog button disabled !!!! Pin
Hamid_RT2-May-06 19:19
Hamid_RT2-May-06 19:19 
GeneralRe: dialog button disabled !!!! Pin
Nibu babu thomas2-May-06 21:11
Nibu babu thomas2-May-06 21:11 
GeneralRe: dialog button disabled !!!! Pin
venadder3-May-06 4:45
venadder3-May-06 4:45 
GeneralRe: dialog button disabled !!!! Pin
Nibu babu thomas3-May-06 17:17
Nibu babu thomas3-May-06 17:17 
QuestionMute my application only.... not others running (windowxs xp...) Pin
chasetoys1-May-06 13:39
chasetoys1-May-06 13:39 
AnswerRe: Mute my application only.... not others running (windowxs xp...) Pin
Ryan Binns1-May-06 14:05
Ryan Binns1-May-06 14:05 
GeneralRe: Mute my application only.... not others running (windowxs xp...) Pin
Maxwell Chen1-May-06 18:21
Maxwell Chen1-May-06 18:21 
GeneralRe: Mute my application only.... not others running (windowxs xp...) Pin
Ryan Binns1-May-06 21:06
Ryan Binns1-May-06 21:06 
AnswerRe: Mute my application only.... not others running (windowxs xp...) Pin
Andrew Bleakley1-May-06 14:46
Andrew Bleakley1-May-06 14:46 
QuestionCWnd.RegEnumValue(HKEY...) Pin
oldmirco1-May-06 12:00
oldmirco1-May-06 12:00 
AnswerRe: CWnd.RegEnumValue(HKEY...) Pin
Ryan Binns1-May-06 14:06
Ryan Binns1-May-06 14:06 
AnswerRe: CWnd.RegEnumValue(HKEY...) Pin
Hamid_RT1-May-06 18:21
Hamid_RT1-May-06 18:21 
GeneralRe: CWnd.RegEnumValue(HKEY...) Pin
oldmirco2-May-06 15:47
oldmirco2-May-06 15:47 
GeneralRe: CWnd.RegEnumValue(HKEY...) Pin
Hamid_RT2-May-06 19:16
Hamid_RT2-May-06 19:16 
GeneralRe: CWnd.RegEnumValue(HKEY...) Pin
oldmirco3-May-06 6:36
oldmirco3-May-06 6:36 

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.