Getting a permit whether it is a study permit or work permit doesn’t imply that the visa is granted to an individual. A separate application needs to be submitted for visa extension when you have extended your work/study permit.
An application for the visitor visa can be done from inside Canada as well but only in cases where the criteria are met as suggested by the Immigration Department and mentioned below: