Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inserting characters in a char* Pin
toxcct17-Oct-04 8:35
toxcct17-Oct-04 8:35 
GeneralRe: inserting characters in a char* Pin
lino_i17-Oct-04 13:43
lino_i17-Oct-04 13:43 
GeneralRe: inserting characters in a char* Pin
toxcct17-Oct-04 21:03
toxcct17-Oct-04 21:03 
GeneralRe: inserting characters in a char* Pin
lino_i18-Oct-04 0:30
lino_i18-Oct-04 0:30 
GeneralRe: inserting characters in a char* Pin
Maximilien16-Oct-04 7:03
Maximilien16-Oct-04 7:03 
GeneralRe: inserting characters in a char* Pin
David Crow18-Oct-04 4:37
David Crow18-Oct-04 4:37 
QuestionHide Window's Title Bar? Pin
InflatableGarfield16-Oct-04 5:18
InflatableGarfield16-Oct-04 5:18 
AnswerRe: Hide Window's Title Bar? Pin
Jim Crafton16-Oct-04 6:27
Jim Crafton16-Oct-04 6:27 
Use SetWindowLong API call and pass in a modified windows style. Look up the various WS_XXX window styles in MSDN. I *think* (off the top of my head) that you want to remove the WS_CAPTION style. But you may also have to remove others.
Once you have modified the style you need to call SetWindowPos like so:
::SetWindowPos( hwnd_, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED | SWP_NOACTIVATE );

SWP_FRAMECHANGED is the critical part that causes Win32 to refresh the window properly.

You can use GetWindowLong(GWL_STYLE) to get the orginal window style and then modify that accordingly.


¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

GeneralRe: Hide Window's Title Bar? Pin
InflatableGarfield16-Oct-04 9:22
InflatableGarfield16-Oct-04 9:22 
GeneralRe: Hide Window's Title Bar? Pin
Graham Bradshaw16-Oct-04 14:47
Graham Bradshaw16-Oct-04 14:47 
GeneralC++ program Pin
namoorthy16-Oct-04 3:51
namoorthy16-Oct-04 3:51 
GeneralRe: C++ program Pin
Leyu16-Oct-04 6:26
Leyu16-Oct-04 6:26 
GeneralRe: C++ program Pin
toxcct16-Oct-04 6:58
toxcct16-Oct-04 6:58 
GeneralRe: C++ program Pin
Leyu17-Oct-04 6:30
Leyu17-Oct-04 6:30 
GeneralRe: C++ program Pin
Aamir Butt17-Oct-04 21:44
Aamir Butt17-Oct-04 21:44 
GeneralC++ program Pin
namoorthy16-Oct-04 3:50
namoorthy16-Oct-04 3:50 
GeneralRe: C++ program Pin
Mad__18-Oct-04 0:34
Mad__18-Oct-04 0:34 
Generalmake a sound event Pin
mark18216-Oct-04 3:49
mark18216-Oct-04 3:49 
GeneralRe: make a sound event Pin
PJ Arends16-Oct-04 7:21
professionalPJ Arends16-Oct-04 7:21 
Generalcant't compile with vs 6.0 Pin
morten4116-Oct-04 3:00
morten4116-Oct-04 3:00 
QuestionHow to write to data to a text file Pin
pork chop16-Oct-04 2:54
pork chop16-Oct-04 2:54 
AnswerRe: How to write to data to a text file Pin
Gary R. Wheeler16-Oct-04 3:00
Gary R. Wheeler16-Oct-04 3:00 
GeneralHelp with program structure Pin
ryuki16-Oct-04 0:53
ryuki16-Oct-04 0:53 
GeneralRe: Help with program structure Pin
Mad__16-Oct-04 1:10
Mad__16-Oct-04 1:10 
GeneralRe: Help with program structure Pin
ryuki16-Oct-04 11:52
ryuki16-Oct-04 11:52 

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.