Click here to Skip to main content
15,909,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Box Controls Pin
Michael P Butler30-Jul-04 2:29
Michael P Butler30-Jul-04 2:29 
GeneralRe: DirectShow and Graphics Overlay Pin
Antti Keskinen30-Jul-04 2:10
Antti Keskinen30-Jul-04 2:10 
GeneralRe: DirectShow and Graphics Overlay Pin
p_smith30-Jul-04 3:33
p_smith30-Jul-04 3:33 
GeneralRe: DirectShow and Graphics Overlay Pin
Antti Keskinen30-Jul-04 10:52
Antti Keskinen30-Jul-04 10:52 
GeneralRe: DirectShow and Graphics Overlay Pin
Antti Keskinen30-Jul-04 11:45
Antti Keskinen30-Jul-04 11:45 
GeneralDirectShow and Graphics Overlay Pin
p_smith30-Jul-04 1:27
p_smith30-Jul-04 1:27 
GeneralWindows Calculator on 2003 Pin
harropj29-Jul-04 23:57
harropj29-Jul-04 23:57 
GeneralRe: Windows Calculator on 2003 Pin
Antti Keskinen30-Jul-04 2:22
Antti Keskinen30-Jul-04 2:22 
harropj wrote:
My understanding is that to add any colour to a button you need to make it owner draw and handle the CTLCOLOR_BTN message.

Not entirely so. You can use the BS_PUSHBUTTON style to indicate how the button responds to a mouse click. However, you can also override the WM_PAINT message handler to modify the way the button is drawn.

This approach is somewhat of a semi-owner drawn button, where Windows OS default behaviour is used to the maximum extent, and only where required, the default behaviour is overridden.

Unfortunately I don't know if there's source code available for Calc.exe. In Windows 2003, I also believe that the calculator is implemented by using C# or other .Net Framework language (such as C++/CLI). The .Net Framework offers many, many improvements over standard Windows or MFC approach procedures. When looking at the .Net Documentation, you can see that there is a Button class in System.Windows.Forms namespace. This class has a property called ForeColor that depicts the button's text color.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
Generalwhen the system shuts down...... Pin
Anonymous29-Jul-04 22:53
Anonymous29-Jul-04 22:53 
GeneralRe: when the system shuts down...... Pin
Michael P Butler29-Jul-04 23:11
Michael P Butler29-Jul-04 23:11 
GeneralRe: when the system shuts down...... Pin
Anonymous29-Jul-04 23:41
Anonymous29-Jul-04 23:41 
GeneralRe: when the system shuts down...... Pin
Michael P Butler30-Jul-04 0:01
Michael P Butler30-Jul-04 0:01 
GeneralRe: when the system shuts down...... Pin
Antony M Kancidrowski30-Jul-04 0:23
Antony M Kancidrowski30-Jul-04 0:23 
GeneralRe: when the system shuts down......[modified] Pin
Antony M Kancidrowski30-Jul-04 0:04
Antony M Kancidrowski30-Jul-04 0:04 
GeneralRe: when the system shuts down......[modified] Pin
Michael P Butler30-Jul-04 0:35
Michael P Butler30-Jul-04 0:35 
GeneralRe: when the system shuts down......[modified] Pin
Antony M Kancidrowski30-Jul-04 1:08
Antony M Kancidrowski30-Jul-04 1:08 
GeneralRe: when the system shuts down......[modified] Pin
Michael P Butler30-Jul-04 1:11
Michael P Butler30-Jul-04 1:11 
GeneralRe: when the system shuts down......[modified] Pin
Anonymous30-Jul-04 1:21
Anonymous30-Jul-04 1:21 
GeneralRe: when the system shuts down......[modified] Pin
Anonymous30-Jul-04 0:42
Anonymous30-Jul-04 0:42 
GeneralRe: when the system shuts down......[modified] Pin
Antony M Kancidrowski30-Jul-04 0:53
Antony M Kancidrowski30-Jul-04 0:53 
Generalpassing parameters to a running program Pin
ting66829-Jul-04 22:35
ting66829-Jul-04 22:35 
GeneralRe: passing parameters to a running program [modified] Pin
Antony M Kancidrowski29-Jul-04 22:46
Antony M Kancidrowski29-Jul-04 22:46 
GeneralRe: passing parameters to a running program Pin
GDavy29-Jul-04 22:46
GDavy29-Jul-04 22:46 
GeneralBeginner - OLE DB - bind to grid control Pin
poptcat29-Jul-04 21:56
poptcat29-Jul-04 21:56 
Generalfailed to create empty document Pin
Anonymous29-Jul-04 21:24
Anonymous29-Jul-04 21:24 

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.