Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Folder size Pin
Demian Panello14-Mar-08 0:24
Demian Panello14-Mar-08 0:24 
GeneralRe: Folder size Pin
Demian Panello14-Mar-08 0:27
Demian Panello14-Mar-08 0:27 
GeneralPositioning a Dialog Box Pin
AbbyIndian14-Mar-08 0:15
AbbyIndian14-Mar-08 0:15 
GeneralRe: Positioning a Dialog Box Pin
Iain Clarke, Warrior Programmer14-Mar-08 0:34
Iain Clarke, Warrior Programmer14-Mar-08 0:34 
GeneralRe: Positioning a Dialog Box Pin
AbbyIndian14-Mar-08 0:48
AbbyIndian14-Mar-08 0:48 
GeneralRe: Positioning a Dialog Box Pin
CPallini14-Mar-08 1:03
mveCPallini14-Mar-08 1:03 
GeneralRe: Positioning a Dialog Box Pin
AbbyIndian14-Mar-08 1:14
AbbyIndian14-Mar-08 1:14 
GeneralRe: Positioning a Dialog Box Pin
David Crow14-Mar-08 2:58
David Crow14-Mar-08 2:58 
This code snippet worked fine for me:

void CMyMainDialog::OnButton1() 
{
    CMyPopupDialog dlg(&m_btn1);
    dlg.DoModal();	
}
 
BOOL CMyPopupDialog::OnInitDialog() 
{
    CDialog::OnInitDialog();
	
    CRect rc;
    m_pParent->GetWindowRect(rc); // m_pParent is a pointer to the button
    SetWindowPos(NULL, rc.left, rc.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
	
    return TRUE;
}


"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionErro while building the project Pin
Rahul.RK14-Mar-08 0:06
Rahul.RK14-Mar-08 0:06 
GeneralRe: Erro while building the project Pin
Rajkumar R14-Mar-08 0:26
Rajkumar R14-Mar-08 0:26 
AnswerRe: Erro while building the project Pin
Member 335235310-Jan-11 19:06
Member 335235310-Jan-11 19:06 
GeneralBurning DVD Pin
sushildaga198413-Mar-08 23:47
sushildaga198413-Mar-08 23:47 
GeneralRe: Burning DVD [modified] Pin
Demian Panello14-Mar-08 2:20
Demian Panello14-Mar-08 2:20 
QuestionHow to Disable OK Button from property sheet. Pin
Ashish Chauhan13-Mar-08 23:44
Ashish Chauhan13-Mar-08 23:44 
AnswerRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian13-Mar-08 23:54
professionalRajesh R Subramanian13-Mar-08 23:54 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 0:26
Ashish Chauhan14-Mar-08 0:26 
QuestionRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian14-Mar-08 1:57
professionalRajesh R Subramanian14-Mar-08 1:57 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 2:08
Ashish Chauhan14-Mar-08 2:08 
AnswerRe: How to Disable OK Button from property sheet. Pin
Rajkumar R14-Mar-08 2:43
Rajkumar R14-Mar-08 2:43 
QuestionRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian14-Mar-08 3:26
professionalRajesh R Subramanian14-Mar-08 3:26 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 4:56
Ashish Chauhan14-Mar-08 4:56 
AnswerRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian14-Mar-08 5:58
professionalRajesh R Subramanian14-Mar-08 5:58 
GeneralRe: How to Disable OK Button from property sheet. Pin
Rajkumar R14-Mar-08 6:09
Rajkumar R14-Mar-08 6:09 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 6:51
Ashish Chauhan14-Mar-08 6:51 
AnswerRe: How to Disable OK Button from property sheet. Pin
CPallini13-Mar-08 23:59
mveCPallini13-Mar-08 23:59 

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.