Skip to main content
gamedev.net
🔒 Locked

CreateWindow in VB

Started by Kryptus Mar 22, 2005 at 7:06 AM 1 replies 600+ views
Original Post
Kryptus
Kryptus
Is it possible to use the CreateWindow API to create a button or listbox for example in Visual Basic 6? If so, how can it be done?
jbadams
jbadams
Well, I don't know about CreateWindow, but you could take a look at this, I believe it does what you want (allows you to create controls at runtime). The second method discussed in that article is better by the way, but some people apparently find the first simpler to understand.
- Jason Astle-Adams
Shannon Barber
Shannon Barber
Yes, but it's not recommended. You can write 'declare' statements for dll functions, and I believe CreateWindow is in user32.dll. This is difficult to do correctly.
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.