Click here to Skip to main content
15,902,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: document view in MFC Pin
Chandrasekharan P9-Mar-09 1:39
Chandrasekharan P9-Mar-09 1:39 
AnswerRe: document view in MFC Pin
Cedric Moonen9-Mar-09 1:58
Cedric Moonen9-Mar-09 1:58 
AnswerRe: document view in MFC Pin
Eytukan9-Mar-09 2:06
Eytukan9-Mar-09 2:06 
QuestionHelp Icon '?' in Property sheet Pin
Anu_Bala9-Mar-09 0:52
Anu_Bala9-Mar-09 0:52 
QuestionRe: Help Icon '?' in Property sheet Pin
Anu_Bala9-Mar-09 1:11
Anu_Bala9-Mar-09 1:11 
AnswerRe: Help Icon '?' in Property sheet Pin
«_Superman_»9-Mar-09 1:21
professional«_Superman_»9-Mar-09 1:21 
QuestionHow to make a custom control nicely? Pin
Igen18-Mar-09 23:58
Igen18-Mar-09 23:58 
AnswerRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 1:07
Nishad S9-Mar-09 1:07 
I think you can create DLL for custom controls. I am not sure about creating OCXs in Borland C++.

AFAIK, its better to create a class hierarchy to create custom controls from WIN32 SDK.
Like
class WndBase;
class BtnWnd : WndBase;
etc.

AFAIK, it is better to pass the "this" along with CreateWindow as lParam. Then you will get it in WM_CREATE (from lParam pointing to CREATESTRUCT). There you can

And you can use SetWindowLong with GWL_USERDATA to store the "this" to each window, so that you can link to the class functions (using GetWindowLong) when WindowProc is executed.

You can write virtual functions in the BaseClass for handling messages and in the derived class (BtnWnd) you can override them for using.

Hope my suggestions will be useful for you of some kind... Smile | :)

- ns ami -

GeneralRe: How to make a custom control nicely? [modified] Pin
Igen19-Mar-09 1:31
Igen19-Mar-09 1:31 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 2:10
Nishad S9-Mar-09 2:10 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 2:17
Nishad S9-Mar-09 2:17 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 3:02
Igen19-Mar-09 3:02 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 3:20
Nishad S9-Mar-09 3:20 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 4:00
Igen19-Mar-09 4:00 
AnswerRe: How to make a custom control nicely? Pin
Stephen Hewitt9-Mar-09 3:04
Stephen Hewitt9-Mar-09 3:04 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 4:04
Igen19-Mar-09 4:04 
GeneralRe: How to make a custom control nicely? Pin
Stephen Hewitt9-Mar-09 20:03
Stephen Hewitt9-Mar-09 20:03 
QuestionHow to fetch cookie timeout value "in specific" using VC++ Pin
IamPoojaa8-Mar-09 23:31
IamPoojaa8-Mar-09 23:31 
AnswerRe: How to fetch cookie timeout value "in specific" using VC++ Pin
Code-o-mat9-Mar-09 2:02
Code-o-mat9-Mar-09 2:02 
QuestionDownload mutiple exe"s from webserver Pin
siva4558-Mar-09 23:30
siva4558-Mar-09 23:30 
AnswerRe: Download mutiple exe"s from webserver Pin
Eytukan8-Mar-09 23:53
Eytukan8-Mar-09 23:53 
GeneralRe: Download mutiple exe"s from webserver Pin
siva4558-Mar-09 23:59
siva4558-Mar-09 23:59 
QuestionRe: Download mutiple exe"s from webserver Pin
David Crow9-Mar-09 4:18
David Crow9-Mar-09 4:18 
AnswerRe: Download mutiple exe"s from webserver Pin
Iain Clarke, Warrior Programmer10-Mar-09 2:45
Iain Clarke, Warrior Programmer10-Mar-09 2:45 
QuestionCWinthread Remote Threads Pin
ForNow8-Mar-09 22:23
ForNow8-Mar-09 22:23 

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.