Click here to Skip to main content
16,014,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralA null as a data field value. Pin
NickOstle28-May-02 12:36
NickOstle28-May-02 12:36 
GeneralRe: A null as a data field value. Pin
Matt Gullett28-May-02 12:41
Matt Gullett28-May-02 12:41 
GeneralRe: A null as a data field value. Pin
NickOstle28-May-02 19:32
NickOstle28-May-02 19:32 
GeneralRe: A null as a data field value. Pin
Matt Gullett28-May-02 23:56
Matt Gullett28-May-02 23:56 
GeneralCustom Win32 API controls Pin
28-May-02 12:06
suss28-May-02 12:06 
GeneralRe: Custom Win32 API controls Pin
Paul M Watt28-May-02 12:40
mentorPaul M Watt28-May-02 12:40 
GeneralRe: Custom Win32 API controls Pin
28-May-02 13:58
suss28-May-02 13:58 
GeneralRe: Custom Win32 API controls Pin
Paul M Watt28-May-02 14:31
mentorPaul M Watt28-May-02 14:31 
All of those functions that I mentioned previously are from the Win32 API. So you will not need to use MFC with those functions.

Creating a custom control is not much different than creating an application window for a raw Win32 application. One of the only differences is when you create your control, you create it as a child of another window.

Try creating a new Win32 Windows Application project in VC++. It will generate a set of basic code to create the application window. It shows how to use the functions that I mentioned, RegisterClass, CreateWindow, and the WindowProc.

You should be able to adapt the window class that they create into the control that you would like to create. Simply modify the styles, and add the functionality that you would like to provide in the WindowProc procedure to handle the windows messages the way that you want.

I am sorry that I do not have a more concrete example on hand.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: MDI application with Win32? Pin
28-May-02 14:42
suss28-May-02 14:42 
GeneralRe: MDI application with Win32? Pin
Paul M Watt28-May-02 15:36
mentorPaul M Watt28-May-02 15:36 
GeneralRe: MDI application with Win32? Pin
27-Jun-02 22:54
suss27-Jun-02 22:54 
GeneralRe: Custom Win32 API controls Pin
Ed Gadziemski30-May-02 12:27
professionalEd Gadziemski30-May-02 12:27 
GeneralProgramming for a hobby Pin
Nnamdi Onyeyiri28-May-02 8:21
Nnamdi Onyeyiri28-May-02 8:21 
GeneralRe: Programming for a hobby Pin
lucy28-May-02 8:24
lucy28-May-02 8:24 
GeneralRe: Programming for a hobby Pin
Mazdak28-May-02 8:37
Mazdak28-May-02 8:37 
GeneralRe: Programming for a hobby Pin
Christian Graus28-May-02 13:08
protectorChristian Graus28-May-02 13:08 
GeneralRe: Programming for a hobby Pin
Marc Richarme28-May-02 13:54
Marc Richarme28-May-02 13:54 
GeneralRe: Programming for a hobby Pin
Paul M Watt28-May-02 16:25
mentorPaul M Watt28-May-02 16:25 
GeneralRe: Programming for a hobby Pin
Alan Chambers29-May-02 2:35
Alan Chambers29-May-02 2:35 
GeneralResizing dialog problem Pin
Hans Ruck28-May-02 7:59
Hans Ruck28-May-02 7:59 
GeneralRe: Resizing dialog problem Pin
Prem Kumar28-May-02 8:37
Prem Kumar28-May-02 8:37 
GeneralChange width of treelistctrl header Pin
SnapRick28-May-02 7:45
SnapRick28-May-02 7:45 
GeneralCannot create my MDI document Pin
spoulson28-May-02 6:44
spoulson28-May-02 6:44 
GeneralDebug info missing Pin
Jason Hihn28-May-02 5:37
Jason Hihn28-May-02 5:37 
GeneralRe: Debug info missing Pin
_Magnus_28-May-02 5:47
_Magnus_28-May-02 5:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.