Solved

Borland OWL  Resource Dialog Button

Posted on 1997-04-23
3
562 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Expert Comment

by:gaohong
ID: 1162927
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
ID: 1162928
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
ID: 1162929
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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.
Suggested Courses

617 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