|
-
Dec 7th, 2001, 12:51 PM
#1
Thread Starter
Addicted Member
You should be programming in C++ API. Then you can do the same (and more) without the declaring of your api's.
-
Dec 7th, 2001, 01:02 PM
#2
Hyperactive Member
Controls that look like XP controls ran in XP
search for meanifest u'll fin the ans
-
Dec 7th, 2001, 01:27 PM
#3
Addicted Member
I dont know C syntax much yet. I am slowwwwwly learning it tho 
The declares are actually needed in C++, they are just included in header files and stuff. I use a module for header files. It works well.
Does the code run any faster in C++ then VB, or is the syntax the only difference?
I do know that there are some things in C++ that are better for example:
lngCounter = lngCounter + 1 is fatser in C++ as: lngCounter++
For now, all my programs are written in API code. I never use forms or controls from VB. I use api due to its speen, good resource use and customization.
I started using API when I learned about the ListView from VB. There were several things I could not do to the VB ListView and later on found that the Collection used for the LV items is slowwwww! The LVM_INSERTITEM along with pre allocation the number of items in the listview is FAST!
I think I might be pushing the VB limit tho.
Always looking for a better and faster way!
-
Dec 7th, 2001, 01:31 PM
#4
Thread Starter
Addicted Member
Does the code run any faster in C++ then VB, or is the syntax the only difference?
Well, it might not be much faster, maybe a bit, but with C++ you are able to subclass the events without using any subclassing routines. Much more powerfull the you can do with VB.
VB is a very nice language, but if you are only using API's to create the programm, I would recommend learn C++!
-
Dec 7th, 2001, 01:36 PM
#5
Addicted Member
Ya, your probably right. It was quite a difference from VB to API code. scary at first and FRUSTRATING! Also, VB crashes alot now that I use API's. Maybe VB wasnt ever meant to be programmed like this.
Always looking for a better and faster way!
-
Dec 7th, 2001, 01:38 PM
#6
Thread Starter
Addicted Member
Originally posted by miben
Maybe VB wasnt ever meant to be programmed like this.
That's for sure.
-
Dec 7th, 2001, 01:40 PM
#7
Addicted Member
1 question for ya:
The Rebar control. Everytime the form is painted by resizing it or if i call MoveWindow, The entire Rebar is repainted. How can I keep this from hapening? I managed to do it ok with the other controls, but the rebar control keeps repainting.
Always looking for a better and faster way!
-
Dec 7th, 2001, 01:46 PM
#8
Thread Starter
Addicted Member
with:
VB Code:
Declare Function LockWindowUpdate Lib "user32" Alias "LockWindowUpdate" (ByVal hwndLock As Long) As Long
Locks the screen or form of your chosen handle. After resizing (so when you done (mousup event), you do:
Good luck!
-
Dec 7th, 2001, 01:52 PM
#9
Addicted Member
naw, i dont think so. It will still refresh when i unlock it. It must have something to do with window clipping.
WS_CLIPCHILDREN Or WS_CLIPSIBLINGS styles for the main window or child windows, but i am not quite sure yet.
Always looking for a better and faster way!
-
Dec 7th, 2001, 02:03 PM
#10
Member
Originally posted by deane034
search for meanifest u'll fin the ans
http://liquid2k.com/filburt1/vbtips/...m#manifestfile
-
Apr 20th, 2002, 12:02 PM
#11
New Member
Thank you for the code, I have been looking for something like this for a long time. I have played around with for a couple of hours, but I still have some questions:
* Where would I put the Click event for, for example, the buttons in the toolbars? And how do you add items to the combobox?
* If I have an exisiting window, and would like to add a toolbar to it, how do I do? I understand that some changes must be done before I put the code in a form's Load event..
Any help is appreciated.
Henrik
-
May 31st, 2002, 04:22 PM
#12
Addicted Member
YIIPPIEEE
OMG THANK YOU SOOOOO MUCH I HAVE BEEN LOOKING FOR MONTHS TRYING TO FIND HOW TO DO THIS!!
MAN I COULD KISS YOU MUWAH
YOU DESERVE A REWARD!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|