[問題] 視窗化程式設定

看板C_and_CPP作者 (大David為)時間12年前 (2012/01/05 17:40), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
我是使用vc2010 include windows.h 之前co了一段sample code 但是結果視窗卻很小 cvNamedWindow("status", 0); // test Window = (HWND) cvGetWindowHandle("status"); Window = GetParent(Window) ; style = GetWindowLong( Window, GWL_EXSTYLE); style = style | WS_EX_LAYERED; SetWindowLong( Window, GWL_EXSTYLE, style); SetLayeredWindowAttributes(Window, RGB(255,255,255), 0, LWA_COLORKEY); style = GetWindowLong(Window, GWL_STYLE); style = GetWindowLong(Window, WS_MAXIMIZE); style = style & (~WS_CAPTION) & ~(WS_BORDER) & ~WS_THICKFRAME & WS_MAXIMIZE; SetWindowLong( Window,GWL_STYLE, style); 請問要怎麼設定成全螢幕大小且底色為透明之程式??? 萬分感謝大家解答 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.146.68
文章代碼(AID): #1F1M_oNw (C_and_CPP)
文章代碼(AID): #1F1M_oNw (C_and_CPP)