Pls help me
-
Pls help me some other problem: - Can I creat and activate other child Dialog from a Dialog ? - How to throw ESC keystroke while activating dialog. I try to write a Dialog base program with MFC Wizard. When main window (dialog) activated, if ESC pressed, the window (program) also deactivate. Whate can I do to avoid this ? - I want to make my main window (dialog) to have a background with a small picture (bmp) like webpage (by "tile" way. Can you help me to do this ? Can you send me a dialog class with the this properties ? I have download a source nearly with my taget (BmpDlg - from CodeProject/Codeguru), but I could not to change Static Control to not transparent. Please help me asap. Thank you, Hai Le
-
Pls help me some other problem: - Can I creat and activate other child Dialog from a Dialog ? - How to throw ESC keystroke while activating dialog. I try to write a Dialog base program with MFC Wizard. When main window (dialog) activated, if ESC pressed, the window (program) also deactivate. Whate can I do to avoid this ? - I want to make my main window (dialog) to have a background with a small picture (bmp) like webpage (by "tile" way. Can you help me to do this ? Can you send me a dialog class with the this properties ? I have download a source nearly with my taget (BmpDlg - from CodeProject/Codeguru), but I could not to change Static Control to not transparent. Please help me asap. Thank you, Hai Le
Hitting the ESC key calls CDialog::OnCancel() which closes the dialog. You just have to override OnCancel() and make the handler empty (don't call the base class OnCancel) As for the static controls, add a handler for WM_CTLCOLOR, and when nCtlColor is CTLCOLOR_STATIC, return a null brush. --Mike-- ================== The original message was: Pls help me some other problem:
- Can I creat and activate other child Dialog from a
Dialog ?
- How to throw ESC keystroke while activating dialog.
I try to write a Dialog base program with MFC Wizard.
When main window (dialog) activated, if ESC pressed,
the window (program) also deactivate. Whate can I do
to avoid this ?
- I want to make my main window (dialog) to have a
background with a small picture (bmp) like webpage (by
"tile" way. Can you help me to do this ? Can you send
me a dialog class with the this properties ? I have
download a source nearly with my taget (BmpDlg - from
CodeProject/Codeguru), but I could not to change
Static Control to not transparent.Please help me asap.
Thank you,
Hai Le