Solved

Borland OWL  Resource Dialog Button

Posted on 1997-04-23
3
541 Views
Last Modified: 2012-06-22
Is that possible somehow to capture and handle
the "BN_PUSHED" (equ. "BN_HILITE") OWL event from the
ordinary button of the Dialog resource work shop window
for application written for Win95 Win32 Target platform?
I have been using Borland C++,V.5.01 compiler with OWL library on Pentium 200 machine. I could trail only
BN_CLICKED, BN_DBLCLICKED, BN_SETFOCUS, BN_KILLFOCUS
notification events.

0
Comment
Question by:leonov
  • 2
3 Comments
 
LVL 3

Expert Comment

by:gaohong
Comment Utility
Yes, you could still catch BN_HILITE with
  EV_CHILD_NOTIFY(id, BN_HILITE, method)
in OWL, however, BN_PUSHED is only for Win95. Even BN_HILITE
is supplied only for compatibility.

good luck



0
 

Author Comment

by:leonov
Comment Utility
Gaohong's answer gives the same information as
OWL Help does. But, my question was:
Why I can not catch BN_HILITE as well as
BN_PUSHED, even working under Windows95?

ID_CHILD_NOTIFY(ID_BUTTON,BN_PUSHED,HandleMethod);
does not work, and
ID_CHILD_NOTIFY(ID_BUTTON,BN_HILITE,HandleMethod);
does not work either.

Do you think, there is something wrong with
OWL library?  How to check this?
Is it possible to fix this trouble
by recompiling the library?

0
 
LVL 3

Accepted Solution

by:
gaohong earned 100 total points
Comment Utility
It is my understanding that you only needs BN_PUSHED or BN_HILITE
in ownerdraw button, and it is supplied for only backward compatibility.

For 32bit application on win95 or after win3.1, your ownerdraw
button should rely on DRAWITEMSTRUCT.

If we are talking about non-ownerdraw button, forget about
try to get this messages (BN_PUSHED), windows has down all the things for you.

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now