Is there a way to be able to write to a client rect from anywhere in my application? I'm guessing create a global memory DC?

How would I create this and write to it? I basically ask because I need a way to display text to the HDC from a different function

Can I get some small example code?