当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·如何在asp中调用存储过程    »显示摘要«
    摘要: 1、odbc中如何调用?写有传递参数与返回值 2、在sql server中如何调用?写有传递参数与返回值 谢谢 ......
 ·关于tcp/ip协议    »显示摘要«
    摘要: 不知道怎么回事,原本好好的机器突然无法通过tcp/ip协议进行工作了,所有使用的该协议的软件只要运行就会出错。 但ping 其他的机器都好,别人可以通过共享服务来使用本机器的资源。 如何解决? ......


(300分)如何设置 打印 方向

我想横行打印,但是   preview   时纸张总是   竖的,还得手工设置,怎样才能编程设定呢?

NO.1   作者: iwxg

void   SetPrntOrientation()  
  {  
  /*  
   
  dmOrientation    
  For   printer   devices   only,  
    selects   the   orientation   of   the   paper.    
    This   member   can   be   either    
    DMORIENT_PORTRAIT   (1)   or    
    DMORIENT_LANDSCAPE   (2).    
  纵向:   portrait  
  横向:   landscape   orientation  
  */ PRINTDLG   pd;  
  pd.lStructSize=(DWORD)sizeof(PRINTDLG);  
  BOOL   bRet=GetPrinterDeviceDefaults(&pd);  
  if(bRet)  
  {  
  //   protect   memory   handle   with   ::GlobalLock   and   ::GlobalUnlock  
  DEVMODE   FAR   *pDevMode=(DEVMODE   FAR   *)::GlobalLock(m_hDevMode);  
  //   set   orientation   to   landscape  
  pDevMode->dmOrientation=DMORIENT_PORTRAIT;//DMORIENT_LANDSCAPE;  
  ::GlobalUnlock(m_hDevMode);  
  }  
   
  }


    摘要: 我有一副地图,由n层构成(河流层,道路层......). 我想用3个checkbox分别控制图层的属性(编辑,可视,可选) 河流 checkbox[1] checkbox[2] checkbox[3] 道路 checkbox[1] checkbox[2] checkbox[3] 我应该用什么控件呢? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE