Originally posted by: nyamnyam
Good
ReplyOriginally posted by: Gilad Novik
and in the main dialog, you call:
for example, you can add a ButtonDown message handler so when the user click on the dialog, a color dialog will pop up so he can choose a background color to his dialog.
If you want to change the background color from your main dialog, you can add a function called "SetBk" to your main CWinApp:
void CMyDialogApp::SetBk(COLORREF txtColor,COLORREF bkColor)
{
SetDialogBkColor(bkColor,txtColor);
}
((CMyDialogApp*)AfxGetApp())->SetBk(textcolor,bkcolor);
Originally posted by: L. Balasubramaniam
sir,
SOS. i am learning vc++ using mircorsoft visual studio ver 6. when i use the function OnOk(), the compiler flags it as error. Why? does this function have some other name in vc++ version 6?
Thanks and sorry for the trouble.
Originally posted by: Francesc Fernandez
I have learned to change the background color of controls, dialogs and forms. Is there a way to change the color of the MainFrame area?
I want to create a UI with a color different than the typical gray.
Originally posted by: Jimmy Chen
Does someone know how to change the font weight for a button? e.g. from normal to bold.
Thanks in advance!
ReplyOriginally posted by: Chris
I was wondering if its possible to have a transparent dialog box and see your button but you can see your background and other windows in the back
Can anyone help?
Thank you
Chris
ReplyOriginally posted by: Crackers
That worked great.. At least for a simple Dialog Based Application that I implemented it on....
ReplyOriginally posted by: bhojaraja ns
ii) viewpointer*->sendmessage(WM_CLOSE) ---> it will give error
i am expecting anwer as soon as possible
hello sir
1 i want set the background colour to the dialogbox as well as Cformview
2 i am using CRecordView and CFormView in my project but i dont't know how to close it, please help me this is SDI Applicaion
i tried like this so for
i) destroywindow()->this deactivates the view but it is not closing as dialog box that means after calling this function it won't allow us to enter any thing on view but view is visible plase help me
one more silly doubt
i can't compare the two cstring even if am using (cstringobj).comare(str2)
help me please
Originally posted by: bhojaraja ns
ii) viewpointer*->sendmessage(WM_CLOSE) ---> it will give error
i am expecting anwer as soon as possible
hello sir
1 i want set the background colour to the dialogbox as well as Cformview
2 i am using CRecordView and CFormView in my project but i dont't know how to close it, please help me this is SDI Applicaion
i tried like this so for
i) destroywindow()->this deactivates the view but it is not closing as dialog box that means after calling this function it won't allow us to enter any thing on view but view is visible plase help me
one more silly doubt
i can't compare the two cstring even if am using (cstringobj).comare(str2)
help me please
Originally posted by: David Otero
When i try to put that code into an app based on dialog, it returns an:
'SetDialogBkColor' : undeclared identifier
What's the way to do the same in a dialog??
Thanks.