You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Thanks Dave
That tidbit of code helped me figure out what I was missing.
BTW the newest version commctrl.inc does not have the
CreateRebar() declare in it but an older version does (date 7-2-99)
Thanks again
Kevin Voell
Dumb question: What's a rebar? Er, what would I know it as other than Rebar?
Scott
-------------
Scott Turchin
Scott Turchin
MCSE, MCP+I http://www.tngbbs.com
---------------------- True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi
I looked in the system comctl32.dll and the export table makes no reference
to CreateRebar() function. This has obviously been an MS decision to exclude this function. (NT4.0 sp6)
Dave,
Where is this function located in the system environment now? I looked in
several *.dll's with no avail.
A rebar is a child window that can hold other controls such as toolbars, menus, listview boxes, animation controls, etc. that can be resized and relocated by grabbing the "BAND". You have probably seen them in IE4 or visual studio or WORD.
Cecil,
Actually the "microsoft" way of creating a rebar is to use the CreateWindowEx function and use the REBARCLASSNAME. It is just that PowerBASIC encapsulated that call into one called CreateRebar() in the early versions of the Commctrl.inc. but one could just as easily use the createwindowex function in PB. It is just I had some earlier code that used the CreateRebar and when I came back to it a year later it would not work and I could not figure out why.
Kevin
I see now. I create this type of toolbar in AutoCAD all the time, allbeit
a different process.
What threw me was Dave's code using this function. Since I'm somewhat
new to Win32 programming, I was looking for the function location in PB
inc's first then system dll's. I was not aware of the previous wrapper
function.
FUNCTION CreateRebar(BYVAL hParent AS LONG, BYVAL Style AS LONG, _
BYVAL x AS LONG, BYVAL y AS LONG, BYVAL w AS LONG, BYVAL h AS LONG, _
BYVAL id AS LONG, BYVAL hInst AS LONG) AS LONG
FUNCTION = CreateWindowEx(%WS_EX_TOOLWINDOW, "ReBarWindow32", BYVAL %NULL, Style, x, y, w, h, hParent, Id, hInst, BYVAL %NULL)
END FUNCTIO
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment