Click here to Skip to main content
15,886,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Enterbutton Pin
22-May-01 20:51
suss22-May-01 20:51 
GeneralADO Parameters Pin
Richard Hudson21-May-01 22:46
Richard Hudson21-May-01 22:46 
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 
Please! who can show me what I need to change here for that problem

void CRegWinDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting

SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
//this->MoveWindow(cxIcon, cyIcon, m_hIcon, true);
CRect rect; //this->MapDialogRect(&rect);
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;

// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}



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 
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 

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.