Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Combo box - set to display the nth string Pin
Iain Clarke, Warrior Programmer26-Jun-03 5:14
Iain Clarke, Warrior Programmer26-Jun-03 5:14 
GeneralRe: Combo box - set to display the nth string Pin
keegan26-Jun-03 6:31
keegan26-Jun-03 6:31 
GeneralRe: Combo box - set to display the nth string Pin
Iain Clarke, Warrior Programmer26-Jun-03 7:27
Iain Clarke, Warrior Programmer26-Jun-03 7:27 
QuestionBest way to build program? Pin
DaveE9th25-Jun-03 23:14
DaveE9th25-Jun-03 23:14 
AnswerRe: Best way to build program? Pin
Ryan Binns26-Jun-03 0:42
Ryan Binns26-Jun-03 0:42 
GeneralReading from a .bmp file. Pin
Neha25-Jun-03 23:06
Neha25-Jun-03 23:06 
Questionif an IP address is in use on LAN? Pin
nicoster25-Jun-03 23:06
nicoster25-Jun-03 23:06 
GeneralProblem on MSFlexGrid pointer type Pin
Arash Hemmati25-Jun-03 22:05
Arash Hemmati25-Jun-03 22:05 
Hi, everybody

I have designed a dialog box using resource manager and a MSFlexGrid type pointer variable defined in its class. The OnInitDialog function looks like this:


class CViewRecordsDlg : public CDialog
{
private:
CMSFlexGrid * m_pFlxGrid;
}

BOOL CViewRecordsDlg::OnInitDialog()
{
CDialog::OnInitDialog();

// TODO: Add extra initialization here
m_pFlxGrid = (CMSFlexGrid *) new CMSFlexGrid;
ASSERT (m_pFlxGrid != NULL);

RECT rect;
GetClientRect(&rect);
m_pFlxGrid->Create(_T("CMSFlexGrid"), _T("CMSFlexGrid"), CEditView::dwStyleDefault, rect, this, IDC_MSFLEXGRID, NULL);

/*
...
Some grid Initilization here
...
*/

m_pFlxGrid->UpdateWindow();
m_pFlxGrid->ShowWindow(SW_SHOW);

return TRUE;
}


This code runs on my computer and shows grid correctly (even without calling UpdateWindow and ShowWindow methods). But on another computer grid doesn't appear (it is shown only blanked dialog box without any error message ). I am sure the FlexGrid control is registered in computers. The same code with placing FlexGrid control on dialog box using resource manager and defining a variable on it using Class Wizard works without problem on all computers.
Would you please advice me how I can solve this problem?Confused | :confused:
GeneralRe: Problem on MSFlexGrid pointer type Pin
Toni7826-Jun-03 21:15
Toni7826-Jun-03 21:15 
GeneralConversion.. Pin
Neha25-Jun-03 21:22
Neha25-Jun-03 21:22 
GeneralRe: Conversion.. Pin
Ted Ferenc25-Jun-03 21:48
Ted Ferenc25-Jun-03 21:48 
GeneralRe: Conversion.. Pin
Neha25-Jun-03 21:58
Neha25-Jun-03 21:58 
GeneralRe: Conversion.. Pin
peterchen25-Jun-03 22:11
peterchen25-Jun-03 22:11 
GeneralRe: Conversion.. Pin
Ted Ferenc26-Jun-03 0:38
Ted Ferenc26-Jun-03 0:38 
GeneralRe: Conversion.. Pin
peterchen26-Jun-03 9:11
peterchen26-Jun-03 9:11 
GeneralRe: Conversion.. Pin
Ryan Binns26-Jun-03 0:50
Ryan Binns26-Jun-03 0:50 
GeneralRe: Conversion.. Pin
Anonymous26-Jun-03 2:14
Anonymous26-Jun-03 2:14 
GeneralRe: Conversion.. Pin
Ryan Binns26-Jun-03 2:22
Ryan Binns26-Jun-03 2:22 
GeneralRe: Conversion.. Pin
Anonymous26-Jun-03 6:10
Anonymous26-Jun-03 6:10 
GeneralRe: Conversion.. Pin
basementman26-Jun-03 6:42
basementman26-Jun-03 6:42 
GeneralI have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
kydfru25-Jun-03 20:37
kydfru25-Jun-03 20:37 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
Ryan Binns26-Jun-03 0:56
Ryan Binns26-Jun-03 0:56 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
kydfru26-Jun-03 1:27
kydfru26-Jun-03 1:27 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
Ryan Binns26-Jun-03 1:49
Ryan Binns26-Jun-03 1:49 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
wheregone26-Jun-03 1:52
wheregone26-Jun-03 1:52 

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.