Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCustom controls in an exported DLL Pin
DREVET Olivier6-Mar-03 8:54
DREVET Olivier6-Mar-03 8:54 
GeneralRe: Custom controls in an exported DLL Pin
Bartosz Bien6-Mar-03 12:33
Bartosz Bien6-Mar-03 12:33 
GeneralRe: Custom controls in an exported DLL Pin
DREVET Olivier6-Mar-03 13:06
DREVET Olivier6-Mar-03 13:06 
GeneralRe: Custom controls in an exported DLL Pin
Bartosz Bien7-Mar-03 0:33
Bartosz Bien7-Mar-03 0:33 
GeneralRe: Custom controls in an exported DLL Pin
DREVET Olivier7-Mar-03 0:48
DREVET Olivier7-Mar-03 0:48 
GeneralRe: Custom controls in an exported DLL Pin
Bartosz Bien7-Mar-03 1:07
Bartosz Bien7-Mar-03 1:07 
GeneralRe: Custom controls in an exported DLL Pin
DREVET Olivier7-Mar-03 1:21
DREVET Olivier7-Mar-03 1:21 
GeneralRe: Custom controls in an exported DLL Pin
DREVET Olivier7-Mar-03 4:34
DREVET Olivier7-Mar-03 4:34 
Dear BB,

Your solution doesn't work for the moment. After some debug, it appears that the Form View window handle is not valid. According to http://www.cpp.atfreeweb.com/MFC/LoadFrame/Index.asp[^], AfxHookWindowCreate() does the following things :
- CFrameWnd::OnCreate
- Calls CWnd::OnCreate
- Calls OnCreateClient, which, if a context with a new view class is supplied, calls CreateView (and that is where the view is created) with the context and an id of AFX_IDW_PANE_FIRST
- Sends (using PostMessage) a WM_SETMESSAGESTRING message to set the status bar message to the string with a resource id of AFX_IDS_IDLEMESSAGE
- Calls RecalcLayout

I'm sure the problem cames from CWnd::OnCreate but I don't know why it return a NULL window handle...
GeneralRe: Custom controls in an exported DLL Pin
Bartosz Bien7-Mar-03 4:49
Bartosz Bien7-Mar-03 4:49 
GeneralDynamic creation (instanciation) of classes Pin
dherrero6-Mar-03 8:35
dherrero6-Mar-03 8:35 
GeneralRe: Dynamic creation (instanciation) of classes Pin
Ravi Bhavnani6-Mar-03 8:37
professionalRavi Bhavnani6-Mar-03 8:37 
GeneralRe: Dynamic creation (instanciation) of classes Pin
dherrero6-Mar-03 12:11
dherrero6-Mar-03 12:11 
GeneralAdd about to system menu in dialog box Pin
jimNLX6-Mar-03 8:27
jimNLX6-Mar-03 8:27 
GeneralRe: Add about to system menu in dialog box Pin
Ravi Bhavnani6-Mar-03 8:35
professionalRavi Bhavnani6-Mar-03 8:35 
GeneralRe: Add about to system menu in dialog box Pin
jimNLX6-Mar-03 8:37
jimNLX6-Mar-03 8:37 
GeneralRe: Add about to system menu in dialog box Pin
jimNLX6-Mar-03 9:12
jimNLX6-Mar-03 9:12 
QuestionDiffernance between MFC extension DL L and regular mfc dll? Pin
clintsinger6-Mar-03 8:17
clintsinger6-Mar-03 8:17 
AnswerRe: Differnance between MFC extension DL L and regular mfc dll? Pin
Bartosz Bien6-Mar-03 12:35
Bartosz Bien6-Mar-03 12:35 
GeneralTransparent Icons Pin
jimNLX6-Mar-03 8:17
jimNLX6-Mar-03 8:17 
GeneralRe: Transparent Icons Pin
DREVET Olivier7-Mar-03 3:10
DREVET Olivier7-Mar-03 3:10 
GeneralSDK & DDK Pin
jucanpo6-Mar-03 7:58
jucanpo6-Mar-03 7:58 
GeneralRe: SDK & DDK Pin
Chris Richardson6-Mar-03 9:35
Chris Richardson6-Mar-03 9:35 
GeneralLines count Pin
Anonymous6-Mar-03 7:49
Anonymous6-Mar-03 7:49 
GeneralRe: Lines count Pin
Christian Graus6-Mar-03 9:48
protectorChristian Graus6-Mar-03 9:48 
GeneralInternet protocols Pin
Mazdak6-Mar-03 7:45
Mazdak6-Mar-03 7:45 

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.