Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Borland OWL  Resource Dialog Button

Posted on 1997-04-23
3
Medium Priority
?
569 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
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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

926 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