Click here to Skip to main content
15,929,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCAsyncSocket Pin
Archer28231-May-04 18:00
Archer28231-May-04 18:00 
GeneralRe: CAsyncSocket Pin
FASTian31-May-04 21:57
FASTian31-May-04 21:57 
Generalquestion Pin
Archer28231-May-04 17:57
Archer28231-May-04 17:57 
GeneralRe: question Pin
f6431-May-04 19:18
f6431-May-04 19:18 
QuestionDetect SD card ? Pin
bryce31-May-04 15:09
bryce31-May-04 15:09 
AnswerRe: Detect SD card ? Pin
bryce31-May-04 19:41
bryce31-May-04 19:41 
GeneralRebar problem Pin
Maarten Kools31-May-04 14:24
professionalMaarten Kools31-May-04 14:24 
GeneralCreate the CWnd Pin
TrungHuynh31-May-04 13:12
TrungHuynh31-May-04 13:12 
Hello

I have a class derived form CWnd

class CTitle: public CWnd
{
public:
BOOL Create(LPCTSTR lpszWindowName, DWORD
dwStyle, const RECT& rect, CWnd*
pParentWnd, UINT nID,
CCreateContext*pContext)
{
BOOL bResult = CWnd::CreateEx
(0 ,CBMSTITLEBAR_CLASSNAME,
lpszWindowName,
dwStyle,rect, pParentWnd,
nID, pContext);

return bResult;
}

//CBMSTITLEBAR_CLASSNAME class name i have alredy
// registered yet by call AfxRegisterClass
// it' ok

BOOL Init();
};

//in the init function i create CTitle
BOOL CTitle:: Init()
{
if(Create(pszTitle,WS_VISIBLE | WS_POPUP |
WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
rcSubstitute, m_pParentWnd, 0))
return TRUE;
else
return FALSE;

}

I'm sure that the m_pParentWnd, pzTitle, rcSubstitue are correct: because it run as well

But in the init function, i call create with last
parameter : 0 (ID of window) it runs ok,
but i change it to another values, the Create fucntion is false.

Any one could help me ? what is the reason
Thanks so much.
GeneralRe: Create the CWnd Pin
Maarten Kools31-May-04 14:27
professionalMaarten Kools31-May-04 14:27 
GeneralRe: Create the CWnd Pin
Diddy1-Jun-04 1:49
Diddy1-Jun-04 1:49 
Generalimage processing Pin
giti31-May-04 11:18
giti31-May-04 11:18 
Generalmultiple RPCs in one process. Pin
leonmccalla@hotmail.com31-May-04 9:36
leonmccalla@hotmail.com31-May-04 9:36 
GeneralThread Handle Query Pin
Nirav Doshi31-May-04 9:30
Nirav Doshi31-May-04 9:30 
GeneralRe: Thread Handle Query Pin
Michael Dunn31-May-04 12:26
sitebuilderMichael Dunn31-May-04 12:26 
GeneralRe: Thread Handle Query Pin
Nirav Doshi31-May-04 20:39
Nirav Doshi31-May-04 20:39 
GeneralRe: Thread Handle Query Pin
Diddy1-Jun-04 1:54
Diddy1-Jun-04 1:54 
GeneralRe: Thread Handle Query Pin
Nirav Doshi1-Jun-04 2:13
Nirav Doshi1-Jun-04 2:13 
GeneralRe: Thread Handle Query Pin
Diddy1-Jun-04 5:10
Diddy1-Jun-04 5:10 
GeneralRe: Thread Handle Query Pin
Nirav Doshi1-Jun-04 8:03
Nirav Doshi1-Jun-04 8:03 
GeneralRe: Thread Handle Query Pin
Diddy1-Jun-04 10:27
Diddy1-Jun-04 10:27 
GeneralCostom Draw Problem!!! Pin
VirgoCI31-May-04 8:24
VirgoCI31-May-04 8:24 
GeneralRe: Costom Draw Problem!!! Pin
Antti Keskinen31-May-04 11:46
Antti Keskinen31-May-04 11:46 
GeneralRe: Costom Draw Problem!!! Pin
VirgoCI31-May-04 17:48
VirgoCI31-May-04 17:48 
Generalsmtp question Pin
includeh1031-May-04 8:16
includeh1031-May-04 8:16 
GeneralRe: smtp question Pin
bryce31-May-04 15:10
bryce31-May-04 15:10 

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.