Setting Pixel Width

I’d appreciate it if someone could tell me how to know how many pixels wide a drawing area is? What I’m doing is drawing with the GL_POINTS and I need to know how many pixels will fit on the gl canvas in order to do proper scaling.

Um… you must know this already, surely? What are you passing to glViewport() ?