Make it static
And do this at the beginning of the windows procedure, prior to processing any messages. If you declare the variable in the switch block, it will only be available within the block that it is declared.Code:static LPSTR titles[1] = { "test" };