Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Powerbuilder WndProc InsertMenuItem API

51 views
Skip to first unread message

mattr

unread,
Apr 24, 2008, 4:04:28 PM4/24/08
to
Let me start by describing the requirement.

I am running a process (mspaint) hooked inside of a picture
box control in powerbuilder. I need to remove some of the
menu items and replace them with my own. I.E File->Exit I
want to notify me if the user has clicked this so I can run
code.

I am able to get a hold of the menu and insert new ones no
problem. I read that in order to capture the menu click I
need to listen to the window messages that mspaint sends
using WndProc.

How can I hook a powerbuilder event to listen and receive
these messages?

Jason 'Bug' Fenter [TeamSybase]

unread,
Apr 24, 2008, 4:53:11 PM4/24/08
to
You cannot use callback functions in PowerBuilder. You might be able to
wrap this functionality in a PBNI component.

mattr

unread,
Apr 24, 2008, 6:03:40 PM4/24/08
to
PBNI looks like the solution for me. Just trying to get my
feet wet I've been downloading some of the source files from
codeXchange, but have had no luck getting these to run.

The one I think most suits my needs (for learning purposes)
is PBNICallback. When I open the test workspace in PB I get
an error regenerating: "Illegal data type WindowEnumerator".

Any pointers/direction I can take this to find an answer?

Thanks,
Matt

0 new messages