Click here to Skip to main content
15,889,403 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: insert dialog in between listbox items [modified] Pin
David Crow8-Jun-06 3:12
David Crow8-Jun-06 3:12 
GeneralRe: insert dialog in between listbox items [modified] Pin
vasusree8-Jun-06 3:41
vasusree8-Jun-06 3:41 
QuestionRe: insert dialog in between listbox items [modified] Pin
David Crow8-Jun-06 4:18
David Crow8-Jun-06 4:18 
Questionwhat's the difference between Process,Thread,Event,Mutex and Semaphore Pin
poda7-Jun-06 23:10
poda7-Jun-06 23:10 
AnswerRe: what's the difference between Process,Thread,Event,Mutex and Semaphore Pin
shadrach_india8-Jun-06 0:02
shadrach_india8-Jun-06 0:02 
Questionquestion regarging callback functions Pin
namaskaaram7-Jun-06 22:59
namaskaaram7-Jun-06 22:59 
AnswerRe: question regarging callback functions Pin
Cedric Moonen7-Jun-06 23:06
Cedric Moonen7-Jun-06 23:06 
QuestionSet the msflexgrid col width and row height according client rect [modified] Pin
zeus_master7-Jun-06 22:40
zeus_master7-Jun-06 22:40 
how to set the col width and row height according client rect and make the cells full fill with the client area.

I calc the value as follow way, but it still can't meet the rect....

BOOL CPgDialog::OnInitDialog()
{
CRect clrect;
long row=0,col=0;
m_grid.SetRows(20); // total rows 20
m_grid.SetCols(20); // total cols 20

m_grid.GetClientRect(&clrect);


long lwidth =clrect.Width()/m_grid.GetRows()*14.4; // inch?
long lheight = clrect.Height()/m_grid.GetCols()*14.4;
for (col=0;col< m_grid.GetCols();col++)
{
m_grid.SetColWidth(col,lwidth);
}
for (row=0;row
AnswerRe: Set the msflexgrid col width and row height according client rect [modified] Pin
Viorel.7-Jun-06 22:58
Viorel.7-Jun-06 22:58 
QuestionHow to make DoModal() in CFrameWnd Pin
huynhnb7-Jun-06 22:30
huynhnb7-Jun-06 22:30 
AnswerRe: How to make DoModal() in CFrameWnd Pin
Cedric Moonen7-Jun-06 22:34
Cedric Moonen7-Jun-06 22:34 
GeneralRe: How to make DoModal() in CFrameWnd Pin
huynhnb7-Jun-06 23:07
huynhnb7-Jun-06 23:07 
GeneralRe: How to make DoModal() in CFrameWnd Pin
Cedric Moonen7-Jun-06 23:12
Cedric Moonen7-Jun-06 23:12 
GeneralRe: How to make DoModal() in CFrameWnd Pin
huynhnb7-Jun-06 23:37
huynhnb7-Jun-06 23:37 
Questionneed sample code Pin
vasusree7-Jun-06 22:25
vasusree7-Jun-06 22:25 
AnswerRe: need sample code Pin
Cedric Moonen7-Jun-06 22:31
Cedric Moonen7-Jun-06 22:31 
AnswerRe: need sample code Pin
Hamid_RT7-Jun-06 22:36
Hamid_RT7-Jun-06 22:36 
AnswerRe: need sample code Pin
Viorel.7-Jun-06 22:46
Viorel.7-Jun-06 22:46 
NewsRe: need sample code Pin
vasusree7-Jun-06 22:48
vasusree7-Jun-06 22:48 
GeneralRe: need sample code Pin
Viorel.7-Jun-06 23:34
Viorel.7-Jun-06 23:34 
GeneralRe: need sample code Pin
vasusree8-Jun-06 3:41
vasusree8-Jun-06 3:41 
AnswerRe: need sample code Pin
Amar Sutar8-Jun-06 19:01
Amar Sutar8-Jun-06 19:01 
QuestionArray Pointer Pin
knoxplusplus7-Jun-06 22:19
knoxplusplus7-Jun-06 22:19 
AnswerRe: Array Pointer Pin
Hamid_RT7-Jun-06 22:27
Hamid_RT7-Jun-06 22:27 
QuestionVisitor Design Pattern Pin
knoxplusplus7-Jun-06 22:15
knoxplusplus7-Jun-06 22:15 

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.