Ask Your Question
0

Attach trackbar

asked Sep 27 '12

Zarko gravatar image

updated Sep 27 '12

Is it possible to attach the trackbar to the some MFC window. To attach to the window that is not created with the "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:

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Sep 27 '12

Vladislav Vinogradov gravatar image

cvGetWindowName and cvCreateTackbar works only with windows created by OpenCV via cvNamedWindow/cvShowImage.

Preview: (hide)

Question Tools

Stats

Asked: Sep 27 '12

Seen: 690 times

Last updated: Sep 27 '12