Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Not able to write .doc file in Win32 using FILE pointer. Pin
CPallini4-May-08 21:59
mveCPallini4-May-08 21:59 
GeneralRe: Not able to write .doc file in Win32 using FILE pointer. Pin
vijay_k4-May-08 22:40
vijay_k4-May-08 22:40 
QuestionRe: Not able to write .doc file in Win32 using FILE pointer. Pin
CPallini4-May-08 22:59
mveCPallini4-May-08 22:59 
AnswerRe: Not able to write .doc file in Win32 using FILE pointer. Pin
vijay_k4-May-08 23:22
vijay_k4-May-08 23:22 
GeneralRe: Not able to write .doc file in Win32 using FILE pointer. Pin
CPallini4-May-08 23:29
mveCPallini4-May-08 23:29 
GeneralRe: Not able to write .doc file in Win32 using FILE pointer. Pin
vijay_k4-May-08 23:36
vijay_k4-May-08 23:36 
GeneralRe: Not able to write .doc file in Win32 using FILE pointer. Pin
CPallini4-May-08 23:54
mveCPallini4-May-08 23:54 
Questioncreating progress bar inMFC,VC++ [modified] Pin
Mohanraj D4-May-08 17:33
Mohanraj D4-May-08 17:33 
I need to create a progress bar for my application and i added the progress control to my dialogbox,and added the following code,while i run the project i can see only a empty progress bar,and no progress is shown,i don't know how to work with the progress bar,and i need to add a status bar to it also.How is that done???pls help me as iam new to MFC concepts.

void CmobtvapplicationDlg::OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);
	// TODO: Add your control notification handler code here
    
CProgressCtrl *Progress = new CProgressCtrl;

	Progress->Create(WS_CHILD | WS_VISIBLE, CRect(10, 10, 288, 35), this,0x16);
	Progress->SetRange(0, 100);
	Progress->SetPos(0);
	if (Progress->GetPos()!=100)
 {
  Progress->StepIt();
 }
 else
 {
 Progress->SetPos(10);

	}
	
	*pResult = 0;
		

}


RAJA

modified on Sunday, May 4, 2008 11:46 PM

AnswerRe: creating progress bar Pin
Christian Graus4-May-08 17:35
protectorChristian Graus4-May-08 17:35 
AnswerRe: creating progress bar inMFC,VC++ Pin
Christian Graus4-May-08 18:43
protectorChristian Graus4-May-08 18:43 
AnswerRe: creating progress bar inMFC,VC++ Pin
Nitheesh George4-May-08 19:54
Nitheesh George4-May-08 19:54 
GeneralRe: creating progress bar inMFC,VC++ Pin
Mohanraj D4-May-08 20:08
Mohanraj D4-May-08 20:08 
GeneralRe: creating progress bar inMFC,VC++ Pin
Hamid_RT4-May-08 20:28
Hamid_RT4-May-08 20:28 
GeneralRe: creating progress bar inMFC,VC++ Pin
Mohanraj D4-May-08 20:56
Mohanraj D4-May-08 20:56 
GeneralRe: creating progress bar inMFC,VC++ Pin
Nitheesh George4-May-08 23:21
Nitheesh George4-May-08 23:21 
QuestionRe: creating progress bar inMFC,VC++ Pin
David Crow5-May-08 3:06
David Crow5-May-08 3:06 
QuestionA MFC Database Project in VC++.net 2003 Pin
Mohsen.Alipour4-May-08 10:05
Mohsen.Alipour4-May-08 10:05 
AnswerRe: A MFC Database Project in VC++.net 2003 Pin
David Crow4-May-08 16:44
David Crow4-May-08 16:44 
QuestionHow can I use a c++ program to compile a source code file? Pin
David Wong RZ4-May-08 8:00
David Wong RZ4-May-08 8:00 
AnswerRe: How can I use a c++ program to compile a source code file? Pin
Hamid_RT4-May-08 19:17
Hamid_RT4-May-08 19:17 
QuestionHow do I change "static" text in window Pin
Kwanalouie4-May-08 6:57
Kwanalouie4-May-08 6:57 
AnswerRe: How do I change "static" text in window Pin
Mark Salsbery4-May-08 7:07
Mark Salsbery4-May-08 7:07 
GeneralRe: How do I change "static" text in window Pin
Kwanalouie4-May-08 13:04
Kwanalouie4-May-08 13:04 
GeneralRe: How do I change "static" text in window Pin
Hamid_RT4-May-08 19:36
Hamid_RT4-May-08 19:36 
GeneralRe: How do I change "static" text in window Pin
Mark Salsbery5-May-08 5:37
Mark Salsbery5-May-08 5:37 

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.