Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCTreeCtrl and Checkboxes Pin
mmica18-May-04 0:48
mmica18-May-04 0:48 
GeneralRe: CTreeCtrl and Checkboxes Pin
jmkhael18-May-04 0:59
jmkhael18-May-04 0:59 
GeneralRe: CTreeCtrl and Checkboxes Pin
birdtable18-May-04 10:34
birdtable18-May-04 10:34 
GeneralHWND in Dialog based application Pin
-alok-18-May-04 0:07
suss-alok-18-May-04 0:07 
GeneralRe: HWND in Dialog based application Pin
jmkhael18-May-04 0:24
jmkhael18-May-04 0:24 
GeneralRe: HWND in Dialog based application Pin
Roger Stoltz18-May-04 0:39
Roger Stoltz18-May-04 0:39 
GeneralRe: HWND in Dialog based application Pin
David Crow18-May-04 2:24
David Crow18-May-04 2:24 
GeneralRe: HWND in Dialog based application Pin
-alok-18-May-04 15:55
suss-alok-18-May-04 15:55 
I have this method:
ENC_RETURNENC_Create_Overlay_Window(UINT enc_id, HWND hWndParent, HWND* hWndOverlay, int x, int y, UINT nWidth, UINT nHeight);

Arguments:
enc_id encoder identifier
hWndParent parent window handle
hWndOverlay overlay window handle address
x overlay window position(left)
y ... (top)
nWidth ... (width)
nHeight ... (height)

this method creates a overlay window for video display, when I call this method in Doc/View like this

RECT rc;
GetClientRect(&rc);
enc_return = ENC_Create_Overlay_Window(ENC_ID, m_hWnd, &hWndOverlay, 0, 0, rc.right, rc.bottom);

the overlay window will be created exactly inside the View.

however when I call it in Dialog like this

RECT rc;
GetClientRect(&rc);
enc_return = ENC_Create_Overlay_Window(ENC_ID, m_hWnd, &hWndOverlay, 0, 0, rc.right, rc.bottom);

or

RECT rc;
GetClientRect(&rc);
enc_return = ENC_Create_Overlay_Window(ENC_ID, GetSafeHwnd(), &hWndOverlay, 0, 0, rc.right, rc.bottom);

the overlay window will appear at the left top of my screen no matter where my dialog is. I suppose this method didn't get the right window.
GeneralRe: HWND in Dialog based application Pin
Roger Stoltz18-May-04 23:22
Roger Stoltz18-May-04 23:22 
GeneralRe: HWND in Dialog based application Pin
David Crow19-May-04 2:19
David Crow19-May-04 2:19 
QuestionHow to tell the length of an SSL Stream... ? Pin
Peejay17-May-04 22:58
Peejay17-May-04 22:58 
AnswerRe: How to tell the length of an SSL Stream... ? Pin
toxcct18-May-04 2:49
toxcct18-May-04 2:49 
GeneralRe: How to tell the length of an SSL Stream... ? Pin
Peejay18-May-04 3:13
Peejay18-May-04 3:13 
GeneralRe: How to tell the length of an SSL Stream... ? Pin
toxcct18-May-04 3:33
toxcct18-May-04 3:33 
Questionhow the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:02
**bamboo**17-May-04 22:02 
AnswerRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
toxcct17-May-04 22:15
toxcct17-May-04 22:15 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:21
**bamboo**17-May-04 22:21 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
toxcct17-May-04 22:38
toxcct17-May-04 22:38 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:41
**bamboo**17-May-04 22:41 
AnswerRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
Prakash Nadar17-May-04 22:25
Prakash Nadar17-May-04 22:25 
AnswerRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:34
**bamboo**17-May-04 22:34 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
Prakash Nadar17-May-04 23:00
Prakash Nadar17-May-04 23:00 
QuestionHow to select a folder in vc++(MFC) Pin
shiva shankar17-May-04 21:45
shiva shankar17-May-04 21:45 
AnswerRe: How to select a folder in vc++(MFC) Pin
Prakash Nadar17-May-04 21:50
Prakash Nadar17-May-04 21:50 
GeneralChat Server Pin
Rassul Yunussov17-May-04 21:32
Rassul Yunussov17-May-04 21:32 

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.