How to retrieve a RegisterClassEx() form of standard VB controls suitable for use in C++ Applications?

Ahmed Osama 120 Reputation points
2023-03-10T10:19:02.25+00:00

How to make a RegisterClassEx() type from standard VB Controls (error control, progress bar, etc) suitable for use in C++ Applications?

When you drag a VB control into a form, really .NET framework does a CreateWindowExW call to create it because the Win32 API what is really can create a control, .NET framework only adds a hidden API call, which is defined in the control and in System.Windows.Forms.dll (The control defines the class while System.Windows.Forms.dll calls CreateWindowExW on the specified class name)

So, how to create a RegisterClassEx() type from standard VB controls suitable for use in Win32 C++ GUI Applications?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,483 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
{count} votes

Accepted answer
  1. Castorix31 82,501 Reputation points
    2023-03-10T13:32:07.0033333+00:00

    You can use C++/CLI as explained in this thread : Create C++ Windows Forms application in Visual Studio 2017

    (it was for 2017 but it works with 2022)


0 additional answers

Sort by: Most helpful