Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWTL CIPAddressCtrl Pin
4-Jul-01 6:08
suss4-Jul-01 6:08 
GeneralRe: WTL CIPAddressCtrl Pin
4-Jul-01 6:33
suss4-Jul-01 6:33 
GeneralRegSaveKey and RegRestoreKey Advanced Privilege problems Pin
4-Jul-01 5:43
suss4-Jul-01 5:43 
GeneralRe: RegSaveKey and RegRestoreKey Advanced Privilege problems Pin
Michael Dunn4-Jul-01 7:18
sitebuilderMichael Dunn4-Jul-01 7:18 
GeneralRe: RegSaveKey and RegRestoreKey Advanced Privilege problems Pin
5-Jul-01 0:01
suss5-Jul-01 0:01 
QuestionWhere do I start? Pin
MolleX4-Jul-01 5:33
MolleX4-Jul-01 5:33 
AnswerRe: Where do I start? Pin
4-Jul-01 5:45
suss4-Jul-01 5:45 
GeneralStatic Text and CStatic Pin
4-Jul-01 5:08
suss4-Jul-01 5:08 
Hi,

I have a dialog with a static text control. I want to change it's caption at run time. Despite it having an ID in the .rc file (IDC_STATIC), it doesn't come up in classwizard so i can't map it to a CStatic object and thus use the inherited CWnd::SetWindowText member function to update it's text.

I tried manually adding the mapping with :

CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMonemupdDlg)
DDX_Control(pDX, IDCLOSE, m_Close);
DDX_Control(pDX, IDC_STATIC, m_Static);
//}}AFX_DATA_MAP

and defining CStatic m_Static in the header file, in the same place as the ClassWizard created definition for IDCLOSE/m_Close. But although this compiles, I get a debug assertation failure in dlgdata.cpp at line 37.

What am I doing wrong?

I know that I could just use CStatic::Create to create the static text control but i'd far rather have the resource managed in the dialog editor.


Thanks for your help

Jon
GeneralRe: Static Text and CStatic Pin
Tomasz Sowinski4-Jul-01 5:18
Tomasz Sowinski4-Jul-01 5:18 
Generalfatal error c1189 Pin
Gérald Mercet4-Jul-01 4:56
Gérald Mercet4-Jul-01 4:56 
GeneralRe: fatal error c1189 Pin
Tomasz Sowinski4-Jul-01 5:12
Tomasz Sowinski4-Jul-01 5:12 
Questionhow to get access to the previous document in MDI Pin
mr20034-Jul-01 2:14
mr20034-Jul-01 2:14 
AnswerRe: how to get access to the previous document in MDI Pin
l a u r e n4-Jul-01 11:13
l a u r e n4-Jul-01 11:13 
Generaltwo string tables Pin
Maham Gilani4-Jul-01 2:00
Maham Gilani4-Jul-01 2:00 
GeneralRe: two string tables Pin
Tomasz Sowinski4-Jul-01 2:11
Tomasz Sowinski4-Jul-01 2:11 
GeneralRe: two string tables Pin
Maham Gilani4-Jul-01 2:17
Maham Gilani4-Jul-01 2:17 
GeneralRe: two string tables Pin
Tomasz Sowinski4-Jul-01 4:34
Tomasz Sowinski4-Jul-01 4:34 
GeneralRe: two string tables Pin
Erik Funkenbusch4-Jul-01 9:28
Erik Funkenbusch4-Jul-01 9:28 
GeneralCHttpFile::ReadString Pin
Winston,Dang3-Jul-01 23:43
Winston,Dang3-Jul-01 23:43 
GeneralRe: CHttpFile::ReadString Pin
Anders Molin4-Jul-01 2:02
professionalAnders Molin4-Jul-01 2:02 
GeneralRe: CHttpFile::ReadString Pin
Winston,Dang4-Jul-01 16:04
Winston,Dang4-Jul-01 16:04 
GeneralRe: CHttpFile::ReadString Pin
Winston,Dang5-Jul-01 23:29
Winston,Dang5-Jul-01 23:29 
Generalsmart pointer Pin
Gérald Mercet3-Jul-01 23:39
Gérald Mercet3-Jul-01 23:39 
GeneralRe: smart pointer Pin
Tomasz Sowinski4-Jul-01 0:05
Tomasz Sowinski4-Jul-01 0:05 
GeneralRe: smart pointer Pin
Erik Thompson4-Jul-01 7:36
sitebuilderErik Thompson4-Jul-01 7:36 

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.