Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to return string type in class Pin
markkuk26-Oct-04 9:18
markkuk26-Oct-04 9:18 
Generaltime critical Pin
LeeeNN26-Oct-04 8:19
LeeeNN26-Oct-04 8:19 
GeneralRe: time critical Pin
Xzyx987X26-Oct-04 9:45
Xzyx987X26-Oct-04 9:45 
GeneralRe: time critical Pin
LeeeNN26-Oct-04 10:34
LeeeNN26-Oct-04 10:34 
GeneralRe: time critical Pin
Nemanja Trifunovic26-Oct-04 16:07
Nemanja Trifunovic26-Oct-04 16:07 
Generalusing MFC in win32 application Pin
includeh1026-Oct-04 7:33
includeh1026-Oct-04 7:33 
GeneralRe: using MFC in win32 application Pin
Christian Graus26-Oct-04 8:49
protectorChristian Graus26-Oct-04 8:49 
GeneralDialogBar in a DLL? Please help! Pin
Exe026-Oct-04 7:27
Exe026-Oct-04 7:27 
Hi there!

I've got a problem with a simple, self-written DialogBar.

The DialogBar is not amazing at all, it simply displays a Dialog in a dockable ControlBar and is part of a DLL. If I try to create the DialogBar (in my MainFrame-Class), it fails and the control bar can not be created.

After a little research, I found out that the following line in the MFC-Core failed:

 <br />
HWND hWnd = ::CreateWindowEx(cs.dwExStyle, cs.lpszClass,<br />
   cs.lpszName, cs.style, cs.x, cs.y, cs.cx, cs.cy,<br />
   cs.hwndParent, cs.hMenu, cs.hInstance, cs.lpCreateParams);<br />


Another strange thing I found out while researching:

 <br />
m_wndDialog.Create("bla fasel", this, 123456, WS_VISIBLE|WS_CHILD|CBRS_FLYBY|CBRS_SIZE_DYNAMIC|CBRS_TOOLTIPS)<br />


In that line a pointer to the parent window is passed to the Create() method (here this) of the DialogBar which is in the DLL.
If I verify the this-pointer before I enter the Create() method the member m_hWnd is valid and seems to be correct. But if I enter the Create() method (is a call to the DLL method), the m_hWnd of the parent window pointer becomes NULL.

Anybody out there with a solution to the problem?

Thanks in advance!
Axel
GeneralA method to collapse code in the IDE Pin
NietzscheDisciple26-Oct-04 7:17
NietzscheDisciple26-Oct-04 7:17 
GeneralRe: A method to collapse code in the IDE Pin
BlackDice26-Oct-04 10:03
BlackDice26-Oct-04 10:03 
GeneralMenu on CFormView Derived Pin
aman200626-Oct-04 6:27
aman200626-Oct-04 6:27 
GeneralKnowing resource ID Pin
0v3rloader26-Oct-04 6:02
0v3rloader26-Oct-04 6:02 
Generallong compile time ... vs.net 2003 ... Pin
Maximilien26-Oct-04 5:57
Maximilien26-Oct-04 5:57 
GeneralRe: long compile time ... vs.net 2003 ... Pin
Blake Miller26-Oct-04 6:02
Blake Miller26-Oct-04 6:02 
Questionwhere am i mistaking here? Pin
Natural_Demon26-Oct-04 5:35
Natural_Demon26-Oct-04 5:35 
AnswerRe: where am i mistaking here? Pin
Blake Miller26-Oct-04 6:09
Blake Miller26-Oct-04 6:09 
GeneralRe: where am i mistaking here? Pin
Natural_Demon26-Oct-04 8:23
Natural_Demon26-Oct-04 8:23 
GeneralRe: where am i mistaking here? Pin
Blake Miller27-Oct-04 4:45
Blake Miller27-Oct-04 4:45 
GeneralGet Row &amp; Column for a listCtrl Pin
sweep12326-Oct-04 4:37
sweep12326-Oct-04 4:37 
GeneralRe: Get Row &amp; Column for a listCtrl Pin
David Crow26-Oct-04 5:07
David Crow26-Oct-04 5:07 
GeneralRe: Get Row &amp; Column for a listCtrl Pin
sweep12326-Oct-04 6:23
sweep12326-Oct-04 6:23 
GeneralRe: Get Row &amp; Column for a listCtrl Pin
Rage26-Oct-04 7:10
professionalRage26-Oct-04 7:10 
GeneralRe: Get Row &amp; Column for a listCtrl Pin
Grahamfff26-Oct-04 9:38
Grahamfff26-Oct-04 9:38 
Questionhow can i have only client area of window Pin
efanHarris26-Oct-04 4:35
efanHarris26-Oct-04 4:35 
AnswerRe: how can i have only client area of window Pin
David Crow26-Oct-04 4:42
David Crow26-Oct-04 4:42 

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.