Link to home
Start Free TrialLog in
Avatar of Thomas Stockbruegger
Thomas StockbrueggerFlag for Germany

asked on

Need some help with Print Dialog

Is it possible to write a message on the Print Dialog (see hardcopy),
or can I block or erase (only for this printing) the Brother HL-7050 from the choosing list of the Print Dialog?
User generated image
I am using this code (also from Expert Exchange help) to disable the "Properties" button.
//  dieser Code für DruckDialog ohne EigenschaftenButten

//  in stdafx.h    # include  <dlgs.h>


#define ID_PROPERTIES_BUTTON psh2
UINT APIENTRY PrintHookProc6(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
{	 
    if (uiMsg == WM_INITDIALOG)
    {
        // manipulate some controls in the hook procedure;
        // for example, disable the "Properties" button
        HWND const hPropButton = GetDlgItem(hdlg, ID_PROPERTIES_BUTTON);
        EnableWindow(hPropButton, false);
    }
	 
    return 0;
}

Open in new window


Thank you for your help.
Best regards,
Thomas
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.