Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to dynamically change a window class name? [modified] Pin
ovidiucucu1-Jul-06 22:38
ovidiucucu1-Jul-06 22:38 
GeneralRe: How to dynamically change a window class name? Pin
yjzh3-Jul-06 18:16
yjzh3-Jul-06 18:16 
QuestionRe: How to dynamically change a window class name? Pin
yjzh3-Jul-06 19:03
yjzh3-Jul-06 19:03 
AnswerRe: How to dynamically change a window class name? Pin
ovidiucucu3-Jul-06 22:33
ovidiucucu3-Jul-06 22:33 
GeneralRe: How to dynamically change a window class name? Pin
yjzh3-Jul-06 23:06
yjzh3-Jul-06 23:06 
GeneralRe: How to dynamically change a window class name? Pin
yjzh3-Jul-06 23:07
yjzh3-Jul-06 23:07 
QuestionRe: How to dynamically change a window class name? Pin
yjzh4-Jul-06 18:10
yjzh4-Jul-06 18:10 
AnswerRe: How to dynamically change a window class name? [modified] Pin
ovidiucucu4-Jul-06 21:08
ovidiucucu4-Jul-06 21:08 
I have tested my examples and work wery well.
However, if you read again more carefully my previous posts you'll see that I have made some particular presumptions like

  • we have a DIALOGEX resource.
  • the dialog has attached a menu with ID in the .rc file (not a name).
  • a CLASS statement was inserted in .rc file, that we'll replace with a class name with the same length.

If one of them is not respected, most possible you can have troubles.
There are just particular-case EXAMPLES, intended to show you the IDEA.
If you want to deal with all the cases and write a general function, dig deeper in DLGTEMPLATEEX structure documentation, as I already said and modify the code accordingly.

I can do that for you "solving all your homework", but I have not enough time now. And note that it's not for free, although costs only a dozen of beers... Smile | :) Wink | ;)

Ovidiu Cucu
Microsoft MVP - Visual C++
QuestionRe: How to dynamically change a window class name? Pin
yjzh4-Jul-06 23:40
yjzh4-Jul-06 23:40 
AnswerRe: How to dynamically change a window class name? Pin
ovidiucucu5-Jul-06 2:42
ovidiucucu5-Jul-06 2:42 
QuestionRe: How to dynamically change a window class name? Pin
yjzh5-Jul-06 20:31
yjzh5-Jul-06 20:31 
Questionwhat is wrong Pin
Tara1429-Jun-06 4:56
Tara1429-Jun-06 4:56 
AnswerRe: what is wrong Pin
cje29-Jun-06 5:04
cje29-Jun-06 5:04 
GeneralRe: what is wrong Pin
Tara1429-Jun-06 5:07
Tara1429-Jun-06 5:07 
AnswerRe: what is wrong Pin
Viorel.29-Jun-06 5:23
Viorel.29-Jun-06 5:23 
GeneralRe: what is wrong Pin
Tara1429-Jun-06 5:27
Tara1429-Jun-06 5:27 
AnswerRe: what is wrong Pin
Zac Howland29-Jun-06 6:48
Zac Howland29-Jun-06 6:48 
GeneralRe: what is wrong Pin
Viorel.29-Jun-06 5:38
Viorel.29-Jun-06 5:38 
GeneralRe: what is wrong Pin
Tara1429-Jun-06 5:42
Tara1429-Jun-06 5:42 
GeneralRe: what is wrong Pin
cje29-Jun-06 5:51
cje29-Jun-06 5:51 
GeneralRe: what is wrong Pin
Tara1429-Jun-06 6:03
Tara1429-Jun-06 6:03 
GeneralRe: what is wrong Pin
cje29-Jun-06 6:25
cje29-Jun-06 6:25 
GeneralRe: what is wrong Pin
cje29-Jun-06 6:27
cje29-Jun-06 6:27 
GeneralRe: what is wrong Pin
Tara1429-Jun-06 7:19
Tara1429-Jun-06 7:19 
GeneralRe: what is wrong Pin
cje29-Jun-06 7:59
cje29-Jun-06 7:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.