Click here to Skip to main content
15,893,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEdit accelerator in VC6's resource editor and rebuild all, nothing changes Pin
followait11-Jan-08 22:03
followait11-Jan-08 22:03 
GeneralRe: Edit accelerator in VC6's resource editor and rebuild all, nothing changes Pin
Maxwell Chen12-Jan-08 9:01
Maxwell Chen12-Jan-08 9:01 
GeneralRe: Edit accelerator in VC6's resource editor and rebuild all, nothing changes Pin
followait12-Jan-08 15:42
followait12-Jan-08 15:42 
GeneralRe: Edit accelerator in VC6's resource editor and rebuild all, nothing changes Pin
Maxwell Chen12-Jan-08 18:09
Maxwell Chen12-Jan-08 18:09 
GeneralRe: Edit accelerator in VC6's resource editor and rebuild all, nothing changes Pin
followait12-Jan-08 20:36
followait12-Jan-08 20:36 
GeneralRe: Edit accelerator in VC6's resource editor and rebuild all, nothing changes Pin
followait13-Jan-08 15:03
followait13-Jan-08 15:03 
Generalrare flick problem [Updated] Pin
followait11-Jan-08 20:30
followait11-Jan-08 20:30 
GeneralCStatic::OnPaint() problem Pin
hanlei000000000911-Jan-08 20:24
hanlei000000000911-Jan-08 20:24 
Hi, All

I overloaded CStatic::OnPaint()

<br />
class myStatic : public CStatic<br />
{<br />
...<br />
}<br />
<br />
void myStatic::OnPaint()<br />
{<br />
<br />
	static bool bb = true;<br />
<br />
	CPaintDC dc(this); <br />
	CBitmap   myBitmap;  <br />
<br />
	if (bb)<br />
	{<br />
		// print  1.BMP<br />
		bb = false;<br />
	}<br />
	else<br />
	{<br />
	     // print  2.BMP<br />
		bb = true;<br />
	}<br />
  <br />
}<br />
<br />


I definition a myStatic object in main dialog

<br />
class CMyDialog : public CDialog<br />
{<br />
 private:<br />
  myStatic m_picture;<br />
  void changePicture();<br />
}<br />
<br />
void CMyDialog::changePicture()<br />
{<br />
 m_picture.SendMessage(WM_PAINT,0,0);<br />
     this->SendMessage(WM_PAINT,0,0);<br />
}<br />



When run to changePicture(), can run to print (1.BMP or 2.BMP) , but the picture not real changed.

And then, if the main dialog had changed, the picture was real changed.
So, how can make the picture is real change at changePicture() is run.
GeneralRe: CStatic::OnPaint() problem Pin
followait11-Jan-08 20:41
followait11-Jan-08 20:41 
GeneralRe: CStatic::OnPaint() problem Pin
Hamid_RT11-Jan-08 20:48
Hamid_RT11-Jan-08 20:48 
GeneralRe: CStatic::OnPaint() problem Pin
Mark Salsbery12-Jan-08 7:57
Mark Salsbery12-Jan-08 7:57 
GeneralNo two files with same path added to list control Pin
neha.agarwal2711-Jan-08 20:02
neha.agarwal2711-Jan-08 20:02 
GeneralRe: No two files with same path added to list control Pin
Llasus11-Jan-08 20:27
Llasus11-Jan-08 20:27 
GeneralRe: No two files with same path added to list control Pin
Hamid_RT11-Jan-08 20:52
Hamid_RT11-Jan-08 20:52 
GeneralRegarding creation of Log File Pin
H4u3211-Jan-08 19:17
H4u3211-Jan-08 19:17 
QuestionRe: Regarding creation of Log File Pin
CPallini12-Jan-08 0:25
mveCPallini12-Jan-08 0:25 
GeneralRe: Regarding creation of Log File Pin
Maxwell Chen12-Jan-08 10:45
Maxwell Chen12-Jan-08 10:45 
GeneralRe: Regarding creation of Log File Pin
namratakalburgi12-Aug-09 23:27
namratakalburgi12-Aug-09 23:27 
GeneralHELP!!Problem with detecting face shape!! Pin
purplee8511-Jan-08 18:03
purplee8511-Jan-08 18:03 
GeneralRe: HELP!!Problem with detecting face shape!! Pin
CPallini12-Jan-08 0:22
mveCPallini12-Jan-08 0:22 
QuestionCOleVariant decimal value [modified] Pin
littleGreenDude11-Jan-08 7:32
littleGreenDude11-Jan-08 7:32 
GeneralRe: COleVariant decimal value Pin
littleGreenDude11-Jan-08 8:03
littleGreenDude11-Jan-08 8:03 
GeneralRe: COleVariant decimal value Pin
led mike11-Jan-08 8:32
led mike11-Jan-08 8:32 
GeneralGDI+ Region::IsVisible Pin
bob1697211-Jan-08 7:11
bob1697211-Jan-08 7:11 
GeneralRe: GDI+ Region::IsVisible Pin
Mark Salsbery11-Jan-08 8:16
Mark Salsbery11-Jan-08 8:16 

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.