Using VS2010 I have added the following test code to a .h file:
class CGridCtrl
{
void DoHideUnhide(BOOL bHide = TRUE);
};
and the following code to the matching cpp file:
// Hide/unhide the selected rows or columns in the grid
void CGridCtrl::DoHideUnhide(BOOL bHide /*== TRUE*/)
{
// Get selected rows and columns
// CUIntArray arrSelectedCols, arrSelectedRows;
// GetSelectedCells(arrSelectedRows, arrSelectedCols);
// ...
}
when I place the caret into the function name in the cpp file VA is happy to offer me Change Signature. Exactly how are you triggering the refactoring menu, and where have you placed the caret?
Are any other VA refactoring commands being offered?
Do you have overloads of this function in your code? If so then this may be the problem, since Change Signature is not offered on overload functions, to avoid problems with VA getting confused over which overload is which.