Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about xor encrytion... Pin
Dominik Reichl25-Mar-04 2:21
Dominik Reichl25-Mar-04 2:21 
Questionwhat is rfind in vc++ Pin
Anonymous25-Mar-04 1:20
Anonymous25-Mar-04 1:20 
AnswerRe: what is rfind in vc++ Pin
toxcct25-Mar-04 1:41
toxcct25-Mar-04 1:41 
AnswerRe: what is rfind in vc++ Pin
Antony M Kancidrowski25-Mar-04 4:08
Antony M Kancidrowski25-Mar-04 4:08 
QuestionIs it possiible to set font for not integer size ? Pin
vgrigor25-Mar-04 1:07
vgrigor25-Mar-04 1:07 
GeneralLoading resouce from .dll Pin
nareshn225-Mar-04 0:38
nareshn225-Mar-04 0:38 
GeneralRequest for advice on design of complex dialog Pin
iknowindigo25-Mar-04 0:01
iknowindigo25-Mar-04 0:01 
GeneralIdentifying controls in CDialog Pin
JonWayne24-Mar-04 23:44
JonWayne24-Mar-04 23:44 
I'm writing some code to identify the class of CDialog controls.

I'm doing this within OnInitDialog().

My first hack at this is to loop through all of the children,
and do the following (Assuming children don't have children here):

CWnd* pChild = NULL;
pChild = (CWnd*)this->GetWindow(GW_CHILD);
....
while(pChild != NULL)
{
cName = pChild->GetRuntimeClass()->m_lpszClassName;
pChild = (CWnd*)pChild->GetNextWindow(GW_HWNDNEXT);
}
....

Ok, despite any errors in the code above, the code works and
loops through all of the children. The problem is that
"CTempWnd" is always returned. The reason this is a problem
is that it obscures the true identity of the control. I've
even tried using GetDlgItem(int nID). The return is always
"CTempWnd". I can't identify the class this way. Keep
in mind that I can access the control ID (IDOK/etc). If
there was some way of finding out the class by using the
dialog control ID, I'd do it.

Any help? In my dialog, in OnInitDialog(), I need to identify
all of the button controls (CButton). This is for the reason
that I want to Subclass them, though I don't know how many or
by what ID they carry.

Jon Wayne
GeneralRe: Identifying controls in CDialog Pin
JonWayne24-Mar-04 23:59
JonWayne24-Mar-04 23:59 
GeneralRe: Identifying controls in CDialog Pin
toxcct25-Mar-04 1:44
toxcct25-Mar-04 1:44 
GeneralRe: Identifying controls in CDialog Pin
David Crow25-Mar-04 2:33
David Crow25-Mar-04 2:33 
GeneralLoad Resource's Bitmap To HBITMAP Pin
akirachen24-Mar-04 23:42
akirachen24-Mar-04 23:42 
GeneralCHtmlView inside SDI App. - Painting the Mainframe Pin
AssemblySoft24-Mar-04 22:28
AssemblySoft24-Mar-04 22:28 
GeneralPaste CF_METAFILEPICT in a rtf dialog box app Pin
Filomela24-Mar-04 21:57
Filomela24-Mar-04 21:57 
GeneralConversion... Pin
Anonymous24-Mar-04 21:51
Anonymous24-Mar-04 21:51 
GeneralRe: Conversion... Pin
Steve S24-Mar-04 22:05
Steve S24-Mar-04 22:05 
GeneralRe: Conversion... Pin
wb24-Mar-04 22:17
wb24-Mar-04 22:17 
GeneralRe: Conversion... Pin
Anonymous25-Mar-04 0:57
Anonymous25-Mar-04 0:57 
GeneralRe: Conversion... Pin
ravjak25-Mar-04 6:47
ravjak25-Mar-04 6:47 
GeneralProblem with COleDateTime Pin
PravinSingh24-Mar-04 21:40
PravinSingh24-Mar-04 21:40 
GeneralRe: Problem with COleDateTime Pin
Cedric Moonen24-Mar-04 21:48
Cedric Moonen24-Mar-04 21:48 
GeneralRe: Problem with COleDateTime Pin
David Crow25-Mar-04 2:41
David Crow25-Mar-04 2:41 
GeneralEnums Pin
monrobot1324-Mar-04 21:22
monrobot1324-Mar-04 21:22 
GeneralRe: Enums Pin
Anonymous24-Mar-04 21:32
Anonymous24-Mar-04 21:32 
GeneralRe: Enums Pin
Maxwell Chen24-Mar-04 21:52
Maxwell Chen24-Mar-04 21:52 

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.