I could be wrong, but at a guess the following line is not correct in your
ButtonClick
function:
CPropertyPageA PageA;
You are creating a new property page object and assuming that it will refer to the existing one. But this is a different object to any page created elsewhere.