From: seb_kramm <seb...@ya...> - 2007-10-26 07:03:24
|
Jessica Chen a écrit : > Does anyone have the experience of design slider control in Dev-C++? > It seems I can only find MFC ways to do so. Dev-C++ cannot invoke MFC? As said before, DevCpp is only an IDE. What you can do depends on the compiler behind, GCC by default. And yes, the ressource compiler provided with Devcpp can handle sliders. See http://msdn2.microsoft.com/en-us/library/bb760145.aspx and http://msdn2.microsoft.com/en-us/library/aa381043.aspx A typical line in your ressource .rc file should look like: CONTROL "Slider1", IDC_SLIDER1, "msctls_trackbar32", TBS_HORZ | TBS_BOTTOM | TBS_AUTOTICKS | WS_TABSTOP, 100, 80, 60,12 Of course, as stated before, win32 api is probably not the best choice... |