Definition of hDlg

Definition of hDlg

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

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

See also  How AI Art Generators Can Save Time and Money for Startups

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist