Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I can't show a CStatic in Dialog!! Pin
Cedric Moonen7-Apr-05 4:25
Cedric Moonen7-Apr-05 4:25 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 5:07
toxcct7-Apr-05 5:07 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 5:13
BadJerry7-Apr-05 5:13 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 5:16
toxcct7-Apr-05 5:16 
Generalsmtp Pin
_tasleem6-Apr-05 23:55
_tasleem6-Apr-05 23:55 
GeneralRe: smtp Pin
Steve S7-Apr-05 1:15
Steve S7-Apr-05 1:15 
GeneralRe: smtp Pin
Alexander M.,7-Apr-05 5:00
Alexander M.,7-Apr-05 5:00 
GeneralCreate button Pin
Francis Chau6-Apr-05 23:55
Francis Chau6-Apr-05 23:55 
Hi,

Below is the part code, which used to display the frame from camera, my problem is that, can I create some button instead of by press "1"?

Thanks!

void CetCapConnect(HWND hwnd)
{
//CAPDRIVERCAPS CapDrvCaps; // structure of the capabilities of the capture driver
if (!hWndC)
hWndC = capCreateCaptureWindow ( // Create a child capture window
LPSTR) "My Capture Window", // window name if pop-up
WS_CHILD | WS_VISIBLE, // window style
0, 0, 160, 120, // window position and size
(HWND) hwnd, // handle of parent window
(int) 0 /* child ID */
);


LRESULT CALLBACK WindowFunc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc; // handle of device context
switch(message)
{
case WM_CHAR: /* process keystroke */
hdc = GetDC(hwnd); /* get device context */
switch (wParam)
{
case 49: // pressed "1" to get connect
CetCapConnect( hwnd );
break;

GeneralRe: Create button Pin
ThatsAlok7-Apr-05 0:15
ThatsAlok7-Apr-05 0:15 
GeneralHelp me... Pin
vtalau6-Apr-05 23:11
vtalau6-Apr-05 23:11 
GeneralRe: Help me... Pin
David Crow7-Apr-05 2:26
David Crow7-Apr-05 2:26 
GeneralQuestion... Pin
NewbieStats6-Apr-05 23:02
NewbieStats6-Apr-05 23:02 
GeneralRe: Question... Pin
toxcct6-Apr-05 23:08
toxcct6-Apr-05 23:08 
GeneralDoEvents() during loading process... in MFC Pin
anderslundsgard6-Apr-05 22:57
anderslundsgard6-Apr-05 22:57 
GeneralRe: DoEvents() during loading process... in MFC Pin
RChin6-Apr-05 23:13
RChin6-Apr-05 23:13 
GeneralRe: DoEvents() during loading process... in MFC Pin
anderslundsgard6-Apr-05 23:40
anderslundsgard6-Apr-05 23:40 
GeneralRe: DoEvents() during loading process... in MFC Pin
RChin6-Apr-05 23:43
RChin6-Apr-05 23:43 
GeneralRe: DoEvents() during loading process... in MFC Pin
BadJerry7-Apr-05 0:41
BadJerry7-Apr-05 0:41 
GeneralRe: DoEvents() during loading process... in MFC Pin
ThatsAlok7-Apr-05 1:04
ThatsAlok7-Apr-05 1:04 
GeneralRe: DoEvents() during loading process... in MFC Pin
RChin7-Apr-05 1:07
RChin7-Apr-05 1:07 
GeneralRe: DoEvents() during loading process... in MFC Pin
BadJerry7-Apr-05 1:12
BadJerry7-Apr-05 1:12 
GeneralRe: DoEvents() during loading process... in MFC Pin
anderslundsgard7-Apr-05 3:08
anderslundsgard7-Apr-05 3:08 
GeneralRe: DoEvents() during loading process... in MFC Pin
Ravi Bhavnani7-Apr-05 6:59
professionalRavi Bhavnani7-Apr-05 6:59 
GeneralRe: DoEvents() during loading process... in MFC Pin
David Crow7-Apr-05 2:30
David Crow7-Apr-05 2:30 
GeneralWindows Installer Conditional Shortcuts Pin
jerry0davis6-Apr-05 22:54
jerry0davis6-Apr-05 22:54 

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.