Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading the Edit properties from different applications Pin
Naveen29-Aug-06 19:47
Naveen29-Aug-06 19:47 
GeneralRe: Reading the Edit properties from different applications Pin
David Crow30-Aug-06 3:44
David Crow30-Aug-06 3:44 
GeneralRe: Reading the Edit properties from different applications Pin
Hamid_RT31-Aug-06 6:00
Hamid_RT31-Aug-06 6:00 
Questionlarge buffers Pin
thathvamsi29-Aug-06 16:42
thathvamsi29-Aug-06 16:42 
AnswerRe: large buffers Pin
Steve S29-Aug-06 21:56
Steve S29-Aug-06 21:56 
QuestionCDhtmlDialog - IHtmlElementCollection [modified] Pin
Christopher Duncan29-Aug-06 16:20
Christopher Duncan29-Aug-06 16:20 
AnswerRe: CDhtmlDialog Pin
Mircea Puiu29-Aug-06 20:24
Mircea Puiu29-Aug-06 20:24 
GeneralRe: CDhtmlDialog Pin
Christopher Duncan30-Aug-06 1:42
Christopher Duncan30-Aug-06 1:42 
Hi, Mircea.

Thanks for taking the time to help on this. Yeah, that was one of many samples that I downloaded & reviewed to no avail. Specifically, here's the problem I'm fighting. I have an edit & two radio buttons in the htm. DoDataExchange updates the variable for the edit, but not the radio buttons. The button state is never updated based on the value of the radio variables, and the value of the variables never changes throughout the life of the dialog.

Here's the relevant snippets for the radio buttons in .htm and DoDataExchange:
<br />
<INPUT id="btnFarenheit" type="radio" name="RadioGroup"> Farenheit<br />
<br><br />
<INPUT id="btnCelcius" type="radio" name="RadioGroup"> Celcius<br />


void CDlgSelectLocation::DoDataExchange(CDataExchange* pDX)<br />
{<br />
	DDX_DHtml_ElementValue(pDX, _T("edtLocation"), m_strLocation); <br />
	DDX_DHtml_Radio(pDX, _T("btnFarenheit"), m_lFarenheit);<br />
	DDX_DHtml_Radio(pDX, _T("btnCelcius"), m_lCelcius);<br />
<br />
	CDHtmlDialog::DoDataExchange(pDX);<br />
}


m_strLocation behaves exactly as expected, but the radio buttons don't. As far as I can tell, I'm making the analgous calls for the radio buttons as the MSDN example uses for the checkboxes, but clearly I'm missing something here.

Of course, first and foremost I'd like to solve the problem at hand. However, it would also be great if I could find the FM to RT regarding the html dialog. I can't seem to find a general usage or tutorial on it anywhere.

As a secondary question, is it normal that you can't use Class Wizard to generate this code for an html dialog? In a CDialog implementation this sort of thing is trivial and quickly done via wizard (although I'd still like to understand the underlying code).

Anwyay, that's the scoop. If anyone has insights on why the radio buttons aren't behaving properly it would be most appreciated. And pointers to the FM would be great as well.

Thanks again, man.


GeneralRe: CDhtmlDialog Pin
Mircea Puiu30-Aug-06 2:57
Mircea Puiu30-Aug-06 2:57 
GeneralRe: CDhtmlDialog Pin
Christopher Duncan30-Aug-06 3:09
Christopher Duncan30-Aug-06 3:09 
GeneralRe: CDhtmlDialog Pin
Mircea Puiu30-Aug-06 7:09
Mircea Puiu30-Aug-06 7:09 
GeneralRe: CDhtmlDialog Pin
Christopher Duncan30-Aug-06 7:15
Christopher Duncan30-Aug-06 7:15 
GeneralRe: CDhtmlDialog Pin
Mircea Puiu30-Aug-06 7:27
Mircea Puiu30-Aug-06 7:27 
AnswerRe: CDhtmlDialog - IHtmlElementCollection Pin
Hamid_RT31-Aug-06 6:02
Hamid_RT31-Aug-06 6:02 
GeneralRe: CDhtmlDialog - IHtmlElementCollection Pin
Christopher Duncan31-Aug-06 6:10
Christopher Duncan31-Aug-06 6:10 
GeneralRe: CDhtmlDialog - IHtmlElementCollection Pin
Hamid_RT31-Aug-06 9:43
Hamid_RT31-Aug-06 9:43 
QuestionButton disappears after OnPaint() Pin
mfranco_neto29-Aug-06 16:08
mfranco_neto29-Aug-06 16:08 
AnswerRe: Button disappears after OnPaint() Pin
Nishad S29-Aug-06 18:39
Nishad S29-Aug-06 18:39 
GeneralRe: Button disappears after OnPaint() Pin
mfranco_neto30-Aug-06 12:04
mfranco_neto30-Aug-06 12:04 
GeneralRe: Button disappears after OnPaint() Pin
Nishad S30-Aug-06 17:33
Nishad S30-Aug-06 17:33 
GeneralRe: Button disappears after OnPaint() Pin
mfranco_neto31-Aug-06 2:53
mfranco_neto31-Aug-06 2:53 
GeneralRe: Button disappears after OnPaint() Pin
Nishad S31-Aug-06 3:33
Nishad S31-Aug-06 3:33 
GeneralRe: Button disappears after OnPaint() Pin
mfranco_neto31-Aug-06 12:04
mfranco_neto31-Aug-06 12:04 
GeneralRe: Button disappears after OnPaint() Pin
Nishad S31-Aug-06 19:04
Nishad S31-Aug-06 19:04 
GeneralRe: Button disappears after OnPaint() Pin
mfranco_neto1-Sep-06 3:35
mfranco_neto1-Sep-06 3:35 

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.