In the blow code snippet, the DeleteColumn parameters takes 0 instead of "i" from the for loop. Why do we use 0 there and when I try using "i" there it didn't completely delete the column. I can't understand the process.
int nColumnCount = m_myListCtrl.GetHeaderCtrl()->GetItemCount();
// Delete all of the columns.for (int i=0; i < nColumnCount; i++)
m_myListCtrl.DeleteColumn(0);// here why do we use 0 instead of "i" and when I use//"i" it didn't completely delete the column.
While OnClose() does get called when dismissing the dialog using the X or Alt+F4, it will not get called when dismissing the dialog using Esc or clicking the Cancel button (if one is present). This may not be an issue for your specific dialog, however.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
void MyDlg :: OnEnchangeEdit()
//could you give some some direction on how to get the text entered in the edit control// Should I use the control value variable of the edit control to save the input// I am confused here, I would like some direction. Thanks
temp = m_editvariable;
Function(1st parameter, temp) // this function will check the text entered in the edit control, with the default value and display appropriate message
Use 3 radio buttons; default select the first option (1L).
Or leave it "empty" (tri-state) and warn if no selection made.
Standard stuff that everyone recognizes.
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.'
― Confucian Analects