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

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


Button message in status bar

Jackie Braun -- jbraun@eagle.wbm.ca
Wednesday, April 17, 1996

Hi.

I am using VC++ 1.51, Win 3.1

The application that I am working on currently displays brief messages in
the status bar when menu and toolbar commands are highlighted.  I would also
like to display a message in the status bar when a button in a dialog box or
formview is highlighted (i.e., depressed but not yet clicked).  But I do not
know what message to handle; I found a reference to ON_BN_HILITE but it
seems to be obsolete in Win 3.1 and up. I also want to do the same thing for
all controls -- I assume that for edit controls and the like that I would
trap the ON_EN_SETFOCUS etc message map.

Any suggestions as to how I can implement these messages would be greatly
appreciated.

Thanks in advance,
Jackie Braun.


-----------------------------------------------------------------
 Jackie Braun, Ph.D. |  Randco Software Corporation
 Consultant          |  2530 Hanover Avenue
 jbraun@eagle.wbm.ca |  Saskatoon SK         Phone (306)343-3380
                     |  Canada S7J 1G1       Fax   (306)343-3341
-----------------------------------------------------------------




Tommy Hui -- thui@slip.net
Monday, April 22, 1996

Hi Jackie,

The only way I can think of doing something like this would be subclass each
of the controls you want this behaviour and trap the WM_LBUTTONDOWN message
and send the text over to the statusbar.

Tommy

At 10:03 PM 4/17/96 -0600, Jackie Braun wrote:
>Hi.
>
>I am using VC++ 1.51, Win 3.1
>
>The application that I am working on currently displays brief messages in
>the status bar when menu and toolbar commands are highlighted.  I would also
>like to display a message in the status bar when a button in a dialog box or
>formview is highlighted (i.e., depressed but not yet clicked).  But I do not
>know what message to handle; I found a reference to ON_BN_HILITE but it
>seems to be obsolete in Win 3.1 and up. I also want to do the same thing for
>all controls -- I assume that for edit controls and the like that I would
>trap the ON_EN_SETFOCUS etc message map.
>
>Any suggestions as to how I can implement these messages would be greatly
>appreciated.
>
>Thanks in advance,
>Jackie Braun.
>
>
>-----------------------------------------------------------------
> Jackie Braun, Ph.D. |  Randco Software Corporation
> Consultant          |  2530 Hanover Avenue
> jbraun@eagle.wbm.ca |  Saskatoon SK         Phone (306)343-3380
>                     |  Canada S7J 1G1       Fax   (306)343-3341
>-----------------------------------------------------------------
>
>
>




Rohit Ojha -- rohit@corus.com
Thursday, April 25, 1996


------ =_NextPart_000_01BB32AB.387AF800
Content-Type: text/plain; charset="us-ascii"




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