Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Definition of hDlg

Question:
I want to make a list-combo visible but, I can't get using API function : SendDlgItemMessage.What is "hDlg" in the following declaration?
Declare function SendDlgItemMessage Lib "User" (Byval hDlg as Integer, Byval nIDDlgItem As Integer, ByVal wParam as integer, lParam as Any) as Long

Answer:
Typically, the parameters beginning with an "h" are handles. Try giving it the hWnd of your window/form. I'd save my project before I did it, though. Playing with this stuff can get very dangerous. I would imagine that hDlg means "handle to the dialog". You can also check the Win 3.1 SDK help file included with VB3, if you're using version 3. If you've got the list-combo on your form and just want to make it visible you don't really need an API call, simply set it's visible property to True in your code:

Combo1.Visible = True
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date