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

C / C++ / MFC

 
GeneralRe: ADO Parameters Pin
John M. Drescher22-May-01 9:31
John M. Drescher22-May-01 9:31 
GeneralRe: ADO Parameters Pin
Carlos Antollini22-May-01 9:40
Carlos Antollini22-May-01 9:40 
GeneralDateTime Class Pin
Gerry21-May-01 22:24
Gerry21-May-01 22:24 
GeneralHELP !!! fit size of dialod window to various resolutions Pin
21-May-01 21:48
suss21-May-01 21:48 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus21-May-01 23:27
protectorChristian Graus21-May-01 23:27 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
22-May-01 0:01
suss22-May-01 0:01 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus22-May-01 0:09
protectorChristian Graus22-May-01 0:09 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
22-May-01 3:05
suss22-May-01 3:05 
I did so and this problem remain


BOOL CRegWinDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
MapDialogRect(&rect);
//GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;
CPaintDC dc(this); // device context for painting


// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
//this->MoveWindow(cxIcon, cyIcon, x, y);

}
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus22-May-01 3:29
protectorChristian Graus22-May-01 3:29 
QuestionHow can I read data from EXEL file? Pin
21-May-01 21:00
suss21-May-01 21:00 
AnswerRe: How can I read data from EXEL file? Pin
Michael Martin21-May-01 22:30
professionalMichael Martin21-May-01 22:30 
Generalmedia control interface Pin
dearsrinu21-May-01 19:45
dearsrinu21-May-01 19:45 
GeneralOpenGL drawing Pin
v_krishnan21-May-01 19:14
v_krishnan21-May-01 19:14 
GeneralRe: OpenGL drawing Pin
Michael S. Scherotter21-May-01 19:51
Michael S. Scherotter21-May-01 19:51 
QuestionHow to trap CTRL+ALT+(key) in an MFC dlg-based app? Pin
Savage21-May-01 18:40
Savage21-May-01 18:40 
AnswerRe: How to trap CTRL+ALT+(key) in an MFC dlg-based app? Pin
Savage21-May-01 20:31
Savage21-May-01 20:31 
GeneralDirectshow Pin
21-May-01 17:40
suss21-May-01 17:40 
Questionany solution to 2038 bug? Pin
21-May-01 16:58
suss21-May-01 16:58 
AnswerRe: any solution to 2038 bug? Pin
21-May-01 17:07
suss21-May-01 17:07 
GeneralRe: any solution to 2038 bug? Pin
21-May-01 17:57
suss21-May-01 17:57 
QuestionHow run an exe file from my software??? Pin
21-May-01 15:26
suss21-May-01 15:26 
AnswerRe: How run an exe file from my software??? Pin
21-May-01 15:43
suss21-May-01 15:43 
GeneralRe: How run an exe file from my software??? Pin
21-May-01 16:03
suss21-May-01 16:03 
Generalselection in clistctrl Pin
Wayne Janaway21-May-01 14:55
Wayne Janaway21-May-01 14:55 
GeneralRe: selection in clistctrl Pin
Michael Dunn21-May-01 17:31
sitebuilderMichael Dunn21-May-01 17:31 

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.