Click here to Skip to main content
15,891,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i change the background color of a button control in vc++ Pin
Selvam R18-Jan-05 22:30
professionalSelvam R18-Jan-05 22:30 
Questionwhat is the use of this pointer ? Pin
phijophlip18-Jan-05 17:22
phijophlip18-Jan-05 17:22 
AnswerRe: what is the use of this pointer ? Pin
Selvam R18-Jan-05 18:08
professionalSelvam R18-Jan-05 18:08 
AnswerRe: what is the use of this pointer ? Pin
David Crow19-Jan-05 4:23
David Crow19-Jan-05 4:23 
GeneralGrafMenu from Programming Windows Pin
LiYS18-Jan-05 17:16
LiYS18-Jan-05 17:16 
GeneralCDialog Derived run-time error Pin
LighthouseJ18-Jan-05 17:09
LighthouseJ18-Jan-05 17:09 
GeneralRe: CDialog Derived run-time error Pin
Serge Krynine18-Jan-05 18:27
Serge Krynine18-Jan-05 18:27 
GeneralRe: CDialog Derived run-time error Pin
LighthouseJ19-Jan-05 3:12
LighthouseJ19-Jan-05 3:12 
ah-ha, I must have missed that little detail, good call. I get the dialog fine but the data in the static text isn't being set properly. Here's my constructor code:
CResultsDlg::CResultsDlg(int offsetWidth, int uncompressedSize, int compressedSize, float compressionRatio) : CDialog(CResultsDlg::IDD, NULL)<br />
						, offsetWidthInt(0), uncompressedSizeInt(0), compressedSizeInt(0), compressionRatioFloat(0) {<br />
	offsetWidthInt = offsetWidth;<br />
    uncompressedSizeInt = uncompressedSize;<br />
	compressedSizeInt = compressedSize;<br />
	compressionRatioFloat = compressionRatio;<br />
	UpdateData(FALSE);<br />
}

offsetWidthInt, uncompressedSizeInt and compressedSizeInt are all integer variables that I made to change the appropriate static text, same with the compressionRatioFloat but it's a floating point number of course. I put the UpdateData(FALSE); because I used it when I (tried to) learn(ed) how to do data exchanges between dialogs and thought it might be what I'm missing but that's not it. Anyone know what I'm not doing or not doing right?
GeneralRe: CDialog Derived run-time error Pin
Blake Miller19-Jan-05 5:39
Blake Miller19-Jan-05 5:39 
GeneralMPEG decode Pin
rushing18-Jan-05 16:37
rushing18-Jan-05 16:37 
GeneralRe: MPEG decode Pin
vaibhavbvp3-Feb-13 18:15
vaibhavbvp3-Feb-13 18:15 
GeneralGet back to 'parent' (hook &amp; dll) Pin
nne-vitamin18-Jan-05 14:57
nne-vitamin18-Jan-05 14:57 
Generalestimates for bejeweled game Pin
bigdeeoo718-Jan-05 13:21
bigdeeoo718-Jan-05 13:21 
GeneralRe: estimates for bejeweled game Pin
ThatsAlok18-Jan-05 17:28
ThatsAlok18-Jan-05 17:28 
Generalcalling member of parent from popup window Pin
Close Network18-Jan-05 13:00
Close Network18-Jan-05 13:00 
GeneralRe: calling member of parent from popup window Pin
ThatsAlok18-Jan-05 18:05
ThatsAlok18-Jan-05 18:05 
GeneralEnumDesktopWindows Pin
Max Santos18-Jan-05 12:54
Max Santos18-Jan-05 12:54 
GeneralRe: EnumDesktopWindows Pin
ThatsAlok18-Jan-05 17:34
ThatsAlok18-Jan-05 17:34 
GeneralFind the focused item in ListCtrl Pin
Cyrus Dang18-Jan-05 10:18
Cyrus Dang18-Jan-05 10:18 
GeneralRe: Find the focused item in ListCtrl Pin
Tom Wright18-Jan-05 10:26
Tom Wright18-Jan-05 10:26 
GeneralRe: Find the focused item in ListCtrl Pin
Cyrus Dang18-Jan-05 10:37
Cyrus Dang18-Jan-05 10:37 
GeneralRe: Find the focused item in ListCtrl Pin
Serge Krynine18-Jan-05 12:38
Serge Krynine18-Jan-05 12:38 
GeneralRe: Find the focused item in ListCtrl Pin
Cyrus Dang18-Jan-05 12:43
Cyrus Dang18-Jan-05 12:43 
Generalcreating html file from MFC Pin
Member 143833718-Jan-05 10:11
Member 143833718-Jan-05 10:11 
GeneralRe: creating html file from MFC Pin
Shog918-Jan-05 11:03
sitebuilderShog918-Jan-05 11:03 

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.