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

C / C++ / MFC

 
AnswerRe: char data type problem Pin
Stefan_Lang29-Sep-10 6:51
Stefan_Lang29-Sep-10 6:51 
GeneralRe: char data type problem Pin
pjdriverdude1-Oct-10 5:31
pjdriverdude1-Oct-10 5:31 
GeneralRe: char data type problem Pin
Stefan_Lang3-Oct-10 22:50
Stefan_Lang3-Oct-10 22:50 
Questionis mfc coding diff [Moved] Pin
prithaa27-Sep-10 3:35
prithaa27-Sep-10 3:35 
AnswerRe: is mfc coding diff Pin
bob1697227-Sep-10 4:16
bob1697227-Sep-10 4:16 
GeneralRe: is mfc coding diff Pin
prithaa27-Sep-10 6:27
prithaa27-Sep-10 6:27 
QuestionCustomizing the Help button in CPrintDialog Pin
rayneesh27-Sep-10 3:04
rayneesh27-Sep-10 3:04 
AnswerRe: Customizing the Help button in CPrintDialog Pin
Cool_Dev27-Sep-10 3:57
Cool_Dev27-Sep-10 3:57 
for that, you need to get get the control ID of the 'Help' button on PrintDialog. Using Spy++, i could find it as 0x40E. Don't know whether it is #defined anywhere Frown | :(

Try adding an MFC class (say CMyPrintDlg), derived from CPrintDialog, override its OnInitDialog().

BOOL CMyPrintDlg::OnInitDialog() 
{
    CPrintDialog::OnInitDialog();

    //change help button's position to leftmost.
    CWnd *pBtnHelp = this->GetDlgItem(0x40E);
    if(pBtnHelp)
    {	
	CRect rc;
	pBtnHelp->GetWindowRect(&rc);
	ScreenToClient(&rc);
	pBtnHelp->SetWindowPos(0, 0, rc.top, 0, 0, SWP_NOSIZE);
    }
    //done

    return TRUE;
}


and invoke it..

CMyPrintDlg dlg(FALSE, PD_PAGENUMS | PD_USEDEVMODECOPIES | PD_SHOWHELP);
dlg.m_pd.nMinPage = dlg.m_pd.nFromPage =1;
dlg.m_pd.nMaxPage = dlg.m_pd.nToPage = 10;
if (dlg.DoModal() == IDOK)
{
   //Hope to work ..
}

QuestionHow to add LibTiff in Win32 project? Pin
002comp27-Sep-10 2:34
002comp27-Sep-10 2:34 
AnswerRe: How to add LibTiff in Win32 project? Pin
CPallini27-Sep-10 3:23
mveCPallini27-Sep-10 3:23 
QuestionVertical Scrollbar in list control Pin
learningvisualc27-Sep-10 1:30
learningvisualc27-Sep-10 1:30 
AnswerRe: Vertical Scrollbar in list control Pin
Niklas L27-Sep-10 2:01
Niklas L27-Sep-10 2:01 
AnswerRe: Vertical Scrollbar in list control Pin
Cool_Dev27-Sep-10 2:42
Cool_Dev27-Sep-10 2:42 
QuestionUnions, bitfields and masking unmasking Pin
federico.strati26-Sep-10 21:45
federico.strati26-Sep-10 21:45 
AnswerRe: Unions, bitfields and masking unmasking Pin
Niklas L26-Sep-10 21:57
Niklas L26-Sep-10 21:57 
AnswerRe: Unions, bitfields and masking unmasking Pin
Sauro Viti26-Sep-10 22:04
professionalSauro Viti26-Sep-10 22:04 
AnswerRe: Unions, bitfields and masking unmasking Pin
federico.strati26-Sep-10 23:57
federico.strati26-Sep-10 23:57 
QuestionTab Order Pin
Fedrer26-Sep-10 20:05
Fedrer26-Sep-10 20:05 
AnswerRe: Tab Order Pin
MANISH RASTOGI26-Sep-10 20:11
MANISH RASTOGI26-Sep-10 20:11 
GeneralRe: Tab Order Pin
Fedrer26-Sep-10 21:06
Fedrer26-Sep-10 21:06 
AnswerRe: Tab Order PinPopular
«_Superman_»26-Sep-10 21:05
professional«_Superman_»26-Sep-10 21:05 
QuestionCreating an intellisense type drop down. [Moved] Pin
emmmatty126-Sep-10 19:53
emmmatty126-Sep-10 19:53 
QuestionConverting the language of an application to any other language Pin
manoharbalu26-Sep-10 18:37
manoharbalu26-Sep-10 18:37 
AnswerRe: Converting the language of an application to any other language Pin
_AnsHUMAN_ 26-Sep-10 19:31
_AnsHUMAN_ 26-Sep-10 19:31 
AnswerRe: Converting the language of an application to any other language Pin
Paresh Chitte26-Sep-10 19:31
Paresh Chitte26-Sep-10 19: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.