15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


_CDialogBar_ (ClassWizard and Event Capturing)

Devin Dow -- devin@rsi-inc.com
Monday, September 23, 1996

Environment : VC++ 4.1 on Windows 95

I am using a CDialogBar instead of a Modeless Dialog.

Can I use the ClassWizard for members the CDialogBar?  
For now I am doing things the hard way:
	CEdit *EditX = (CEdit*) DlgBar->GetDlgItem(IDC_X);
	EditX->SetWindowText("1.00");

Also, I want to react to the event of the user closing the CDialogBar (the
X in the top right).  How do I catch this event.  (Also, How do I catch
other events, like hitting a button in the CDialogBar or Text Changing in a
CEdit in the Dialog Bar?)

-- 
Thank You,
/=========================================================\
|Devin Dow - devin@rsi-inc.com                            |
|Router Solutions, Inc. - Interface tools for CAE/CAD/CAM |
|   __ _              http://www.rsi-inc.com              |
|  /  \.\ EVIN        Check Out CAMCAD for Windows        |
| / /\ \.\ OW                          __                 |
| \ \.\ \.\         o /    o          |\ \                |
|  \ \/ /./        /\|    /\|\        | \_\               |
|   \  /./          / >    < \          |  \    GOAL!!    |
|    \/./          '  ` o  '  `         |   \             |
\=========================================================/



Mike Blaszczak -- mikeblas@nwlink.com
Wednesday, September 25, 1996

At 15:02 9/23/96 -0700, Devin Dow wrote:
>Environment : VC++ 4.1 on Windows 95

>I am using a CDialogBar instead of a Modeless Dialog.

>Can I use the ClassWizard for members the CDialogBar?  
>For now I am doing things the hard way:
>	CEdit *EditX = (CEdit*) DlgBar->GetDlgItem(IDC_X);
>	EditX->SetWindowText("1.00");

Unfortunately, ClassWizard doesn't understand CDialogBars.

>Also, I want to react to the event of the user closing the CDialogBar (the
>X in the top right).  How do I catch this event.  (Also, How do I catch
>other events, like hitting a button in the CDialogBar or Text Changing in a
>CEdit in the Dialog Bar?)

Use Spy++ to see what message(s) are being sent in those circumstances and
code message handlers to react to them.

>-- 
>Thank You,
>/=========================================================\
>|Devin Dow - devin@rsi-inc.com                            |
>|Router Solutions, Inc. - Interface tools for CAE/CAD/CAM |
>|   __ _              http://www.rsi-inc.com              |
>|  /  \.\ EVIN        Check Out CAMCAD for Windows        |
>| / /\ \.\ OW                          __                 |
>| \ \.\ \.\         o /    o          |\ \                |
>|  \ \/ /./        /\|    /\|\        | \_\               |
>|   \  /./          / >    < \          |  \    GOAL!!    |
>|    \/./          '  ` o  '  `         |   \             |
>\=========================================================/

.B ekiM
http://www.nwlink.com/~mikeblas/
Don't look at my hands: look at my _shoulders_!
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |