Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Attach trackbar

Is it possible to attach the trackbar to the some MFC window. To attahc to the window that is not created with the "cvNamedWindow". What i tried is next.

If I have some MFC window ( derived from CWnd ) can i attach the trackbar using the cvCreateTrackbar to that window. I`ve tried to get name of the existing mfc like this: const char * sWndName = cvGetWindowName(ptrToMfcWND->GetSafeHWND()) cvCreateTackbar("Trackbar", sWndName, &nVal, 255, trackbarCallback);

This is not working. cvGetWindowName return empty pointer.

Is there any other way ?

Z

Attach trackbar

Is it possible to attach the trackbar to the some MFC window. To attahc attach to the window that is not created with the "cvNamedWindow". What i tried is next.

"cvNamedWindow". If I have some MFC window ( derived from CWnd ) can i attach the trackbar using the cvCreateTrackbar to that window. I`ve tried to get name of the existing mfc window like this: this:

const char * sWndName = cvGetWindowName(ptrToMfcWND->GetSafeHWND()) cvCreateTackbar("Trackbar", sWndName, &nVal, 255, trackbarCallback);

This is not working. cvGetWindowName return empty pointer.

Is there any other way ?

Z