in the onDraw function of my view.cpp file I have some code that draws a waveform (from a wavefile) on the client area.
in my program the top-level view will allow the user to see the entire waveform. however if he/she should zoom in not all of it will be visible so what I require is a horizontal scrollbar. how can i dynamically add this to my app?
also, is it possible to determine the current display resolution the monitor is using. for example in my code i have the following (in the onDraw function)
the value 1024 is just because my display is currently at 1024x768 resolution but what I would really like is something like
const inst RESOLUTION = someFunctionToDetermineResolution();