Click here to Skip to main content
15,929,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: serial port buffer full? Pin
Trollslayer21-Dec-04 2:06
mentorTrollslayer21-Dec-04 2:06 
GeneralRe: serial port buffer full? Pin
Nik0n21-Dec-04 2:25
Nik0n21-Dec-04 2:25 
QuestionTransparent Label ? Pin
pc_dev20-Dec-04 23:13
pc_dev20-Dec-04 23:13 
GeneralUpload picture Pin
henryzal20-Dec-04 22:25
susshenryzal20-Dec-04 22:25 
GeneralRe: webservice Pin
Antti Keskinen20-Dec-04 22:17
Antti Keskinen20-Dec-04 22:17 
GeneralDynamic Crystal report viewer control Pin
Rahim Rattani20-Dec-04 20:40
Rahim Rattani20-Dec-04 20:40 
GeneralRe: Dynamic Crystal report viewer control Pin
naren-vc21-Dec-04 21:57
naren-vc21-Dec-04 21:57 
Generalset cprintdialog.m_pd.hdevmode Pin
nancysangeetha20-Dec-04 20:20
nancysangeetha20-Dec-04 20:20 
I have the code as

DEVMODE devmode;

devmode.dmFields = DM_ORIENTATION;
devmode.dmOrientation = DMORIENT_LANDSCAPE;
devmode.dmSize = sizeof(DEVMODE);

CPrintDialog g_dlgPrt(FALSE);

g_dlgprt.DoModal();

Before showing the print dialog box , i want to set the radio button to landscape in the dialog box.

I tried the following code,

HGLOBAL hgdvmode = GlobalHandle((LPCVOID)&devmode);
g_dlgprt.m_pd.hdevmode = hgdvmode;

But this not working .
can you help in this regard.
GeneralRe: set cprintdialog.m_pd.hdevmode Pin
David Crow21-Dec-04 2:17
David Crow21-Dec-04 2:17 
GeneralRe: set cprintdialog.m_pd.hdevmode Pin
nancysangeetha21-Dec-04 17:54
nancysangeetha21-Dec-04 17:54 
GeneralCalling a web service form MFC... Pin
anderslundsgard20-Dec-04 20:06
anderslundsgard20-Dec-04 20:06 
GeneralRe: Calling a web service form MFC... Pin
Antti Keskinen20-Dec-04 22:19
Antti Keskinen20-Dec-04 22:19 
GeneralRe: Calling a web service form MFC... Pin
anderslundsgard20-Dec-04 23:42
anderslundsgard20-Dec-04 23:42 
GeneralRe: Calling a web service form MFC... Pin
Antti Keskinen21-Dec-04 4:45
Antti Keskinen21-Dec-04 4:45 
GeneralConvert CString to Integer Pin
Anonymous20-Dec-04 19:46
Anonymous20-Dec-04 19:46 
GeneralRe: Convert CString to Integer Pin
SivaramanDhamodharan20-Dec-04 19:58
SivaramanDhamodharan20-Dec-04 19:58 
GeneralRe: Convert CString to Integer Pin
Jon Hulatt20-Dec-04 21:56
Jon Hulatt20-Dec-04 21:56 
GeneralRe: Convert CString to Integer Pin
David Crow21-Dec-04 2:01
David Crow21-Dec-04 2:01 
GeneralRe: Convert CString to Integer Pin
Jon Hulatt21-Dec-04 5:19
Jon Hulatt21-Dec-04 5:19 
GeneralRe: Convert CString to Integer Pin
Renjith Ramachandran20-Dec-04 20:37
Renjith Ramachandran20-Dec-04 20:37 
GeneralProblems with appending, copying usigned char* data ----Pls help Pin
ledallam20-Dec-04 19:28
ledallam20-Dec-04 19:28 
GeneralRe: Problems with appending, copying usigned char* data ----Pls help Pin
Jon Hulatt20-Dec-04 22:05
Jon Hulatt20-Dec-04 22:05 
Generalwebservice Pin
hou_12620-Dec-04 19:03
hou_12620-Dec-04 19:03 
QuestionCreating an ActiveX? Pin
dSolariuM20-Dec-04 18:41
dSolariuM20-Dec-04 18:41 
GeneralAbout CEdit::LineLength Pin
freehawk20-Dec-04 18:28
freehawk20-Dec-04 18:28 

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.