Ask Your Question

Zarko's profile - activity

2012-09-27 23:48:30 -0500 received badge  Student (source)
2012-09-27 07:04:22 -0500 received badge  Editor (source)
2012-09-27 07:01:43 -0500 asked a question Attach trackbar

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