| | |
VB 1.0 Toolbar
Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2007
Posts: 9
Reputation:
Solved Threads: 0
Hi everyone,
I'm writing a little app for myself in VB1.0 (I like the language, please don't knock it) and it more or less adds buttons into the top-right corner of whatever window is active, like NVidia does.
My problem is that these buttons are on a form. In an application. Which means that I set focus to this toolbar when I click the buttons on it. Which means that... when I click my toolbar's buttons the window the toolbar has locked onto suddenly goes "inactive". Eww!
I've been told to use CreateWindowEx to make a WS_EX_TOOLWINDOW (but wasn't given an example), and although there is a 16-bit call for it (stated below, because the 16-bit call is different from the 32-bit one), I'm not sure if I can create the aforementioned window style, and how/where to start if this actually is possible.
Could anyone please help me? I just want to get the window running and even possibly know how to add controls to it using standard VB methods (now that would be nice).
Thanks
--asmqb
16-Bit CreateWindowEx:
Note the use of the "User" library - not "User32"!
I'm writing a little app for myself in VB1.0 (I like the language, please don't knock it) and it more or less adds buttons into the top-right corner of whatever window is active, like NVidia does.
My problem is that these buttons are on a form. In an application. Which means that I set focus to this toolbar when I click the buttons on it. Which means that... when I click my toolbar's buttons the window the toolbar has locked onto suddenly goes "inactive". Eww!
I've been told to use CreateWindowEx to make a WS_EX_TOOLWINDOW (but wasn't given an example), and although there is a 16-bit call for it (stated below, because the 16-bit call is different from the 32-bit one), I'm not sure if I can create the aforementioned window style, and how/where to start if this actually is possible.
Could anyone please help me? I just want to get the window running and even possibly know how to add controls to it using standard VB methods (now that would be nice).
Thanks
--asmqb
16-Bit CreateWindowEx:
vb Syntax (Toggle Plain Text)
Declare Function CreateWindowEx% Lib "User" (ByVal dwExStyle&, ByVal lpClassName$, ByVal lpWindowName$, ByVal dwStyle&, ByVal X%, ByVal Y%, ByVal nWidth%, ByVal nHeight%, ByVal hWndParent%, ByVal hMenu%, ByVal hInstance%, ByVal lpParam$)
Last edited by asmqb; Apr 5th, 2007 at 2:12 am.
•
•
Join Date: Jan 2007
Posts: 9
Reputation:
Solved Threads: 0
What file? This is Windows.... 
Also, I'm getting Linux soon, so modifying the core of eg fluxbox or changing a couple of config items in KDE or GNOME would probably do that for me... but having those buttons has kinda worn off now anyway
But again... what file?! 0.o
Thanks for your reply.
-asmqb/asmqb7/dav7/I-have-too-many-nicks-they-need-to-make-an-openid-for-nicks

Also, I'm getting Linux soon, so modifying the core of eg fluxbox or changing a couple of config items in KDE or GNOME would probably do that for me... but having those buttons has kinda worn off now anyway

But again... what file?! 0.o
Thanks for your reply.
-asmqb/asmqb7/dav7/I-have-too-many-nicks-they-need-to-make-an-openid-for-nicks
![]() |
Similar Threads
- Lost browser links,internet options etc...toolbar (Web Browsers)
- Customize the Internet Explorer 6 Toolbar (Windows tips 'n' tweaks)
- Display the Quick Launch Toolbar (Windows tips 'n' tweaks)
- Add a Map Drive Button to the Toolbar (Windows tips 'n' tweaks)
- Can't display links in toolbar (Web Browsers)
- ToolBar>dll (Web Browsers)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: please help me: build a binary search tree by Lisp
- Next Thread: to convert string to integer value
Views: 2057 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Legacy and Other Languages






