AutoClik is mostly implemented now. You can try it out with the Autodriv application. For more information on loading and using Autodriv, see Preview of the AutoClik Application in Lesson 1.
To test AutoClik Step 2
Nothing happens—Why?
Set X and Set Y call AutoClik’s SetX
and SetY
methods, which call CAutoClickDoc::Refresh
. This means that when you use Autodriv’s Set
X
and Set
Y
functions, the change shows up immediately in AutoClik’s window.
In contrast, Autodriv’s Set
Text
function directly accesses the m_str
member variable of AutoClik’s document. The change does not show up in AutoClik’s window until you call Refresh Display
from Autodriv, which calls AutoClik’s RefreshWindow
method, which in turn calls CAutoClickDoc::Refresh
.
The changes you entered in the Text box are displayed in AutoClik’s window.
Note that the GetPosition
and SetPosition
methods have not been implemented. You will implement them in Step 3.