even if i use setbkcolor in WM_PAINT is does not do anything.
maxsteel
Posts
-
SetBkColor does not seem to work in OnInitDialog -
SetBkColor does not seem to work in OnInitDialogusing WM_CTLCOLOR causes problems in other parts of my code. is there any other solution?
-
SetBkColor does not seem to work in OnInitDialoghi, i have a dialog box with a static control. the problem is that when i try to use setbkcolor for the static control in oninitdialog of the dialog box, it does not produce any results. i have tried to use GetDC() for the static control to get the DC. and then tried to set the background color of the static control. can any one give me a solution? regards, kevin
-
determine if contents of dialog are changedhi, how do i determine if the contents of the dialog are changed from the initial values. i have edit boxes, check boxes, etc. after initialization of the dialog with the default values, how do i determine if the contents of the dialog are changed?
-
C++ class design question - static memberhi indrawati, in your case, the important thing is that what do your variables do. if there are required to be common for all the objects of the particular class, ie they share the same values, then u will have to use them as static. if this is the case then there should be no problem in the design
-
problem in movement of the group controlhi, i have a group control on a dialog box. this group control has two edit boxes. i have written code to resize the dialog box and all the controls along with it. the problem is that when i move the group control, the controls within it move twice, once with the group control and the next time individually. this is causing the movement of the edit boxes to be seen twice causing some kind of flickering? also can u tell me how i can move all the controls within the dialog box simultaneously. right now i move each of the controls along with the resizing of the dialog box but there is some time lag in the movement of each of the controls. can any one tell me a solution?:confused:
-
clistctrl variable row heighthi all, i have a CListCtrl on a dialog box. i want to have the rows of the CListCtrl with variable height which is determined dynamically during program execution. i have used MeasureItem which is called only once to set the row height. also i have used DrawItem to draw the elements in the CListCtrl rows. also the CListCtrl used has three columns. how can i get columns in the CListBox:confused:
-
placing the device independent bitmap into the clipboardcan someone please tell me how i can place a device independent bitmap into the clipboard without converting it to a device dependent bitmap?
-
setting the font of the view in the doc/ view architecturehi, i tried to do as u told but the font does not change. CFont Font; CFont* pOldFont; LOGFONT lgFont; CTextFormatterDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); lgFont.lfHeight = -19; lgFont.lfWidth = 0; lgFont.lfWeight = FW_BOLD; lgFont.lfItalic = TRUE; lgFont.lfStrikeOut = TRUE; lgFont.lfUnderline = TRUE; lgFont.lfCharSet = ANSI_CHARSET; lgFont.lfOutPrecision = OUT_CHARACTER_PRECIS; lgFont.lfQuality = DEFAULT_QUALITY; strcpy(lgFont.lfFaceName, ""); Font.CreateFontIndirect(&lgFont); pOldFont = pDC->SelectObject(&Font); pDC->TextOut(0, 0, pDoc->GetText()); pDC->SelectObject(pOldFont); Font.DeleteObject();
-
setting the font of the view in the doc/ view architecturethank you for ur help
-
setting the font of the view in the doc/ view architecturei have a program done using the doc/view architecture. i want to change the font of whatever text i display in the view but am unable to figure out how to do so and in which member function of CView such as OnDraw, OnUpdate, etc?:confused: