[comp.sys.mac.misc] MBAR question

adiseker@potomac.ads.com (Andrew Diseker) (08/10/90)

	Howdy,

	I'm having a minor problem using an MBAR resource.  I used ResEdit to
create the MBAR and it's menus, making sure resource ID's matched where they
should.  I'm using the system MDEF, straight text for the menu entries, 
nothing funky at all.  My test program calls all the Mac initializations, calls
GetNewMBar with the right resource number, and calls SetMenuBar using the
handle just returned ( non-NULL ).  The problem is in my event loop, when I
check for mouse clicks.  I call FindWindow with the event.where point, straight
from GetNextEvent, and FindWindow insists that mouse clicks in the menubar are
inDesk, not inMenu.  I don't have any windows open (yet), could this be a 
problem?  Do I have to "destroy" the original menubar first?  What am I 
missing?  Any help would be appreciated, such as TFM to R. I've been through
IM I-V, Macintosh Revealed 1-4, "On Macintosh Programming: Advanced Techniques",
and "Using the Macintosh Toolbox with C", and they all say basically the same:
"Trust us, it works the way we tell you."  Grumble, grumble, gnash.

Specs:

	Mac II, 6.0.5, Multifinder, ThinkC 4.0, BS CS 1984 Eastern Kentucky
	University ( Go Colonels B^) B^) B^)

		Thanks,
		Andrew



-- 
Andrew Diseker   >Advanced Decision Systems   >UUCP: sun!sundc!potomac!adiseker
>Internet:adiseker@potomac.ads.com  "Indeed, many respected computer scientists
have difficulty with left and right even though they can manage the logical con-
nectives and can be left to write left to right the right Boolean operations"