Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# how to get the directory and file names from a OPEN server Pin
Dave Kreskowiak22-Oct-08 5:44
mveDave Kreskowiak22-Oct-08 5:44 
GeneralRe: C# how to get the directory and file names from a OPEN server Pin
CDBob200222-Oct-08 9:01
CDBob200222-Oct-08 9:01 
GeneralRe: C# how to get the directory and file names from a OPEN server Pin
Dave Kreskowiak22-Oct-08 13:44
mveDave Kreskowiak22-Oct-08 13:44 
GeneralRe: C# how to get the directory and file names from a OPEN server Pin
CDBob200222-Oct-08 14:33
CDBob200222-Oct-08 14:33 
QuestionIdeas for writing an emulator around firmware update images Pin
Justin Weber21-Oct-08 13:08
Justin Weber21-Oct-08 13:08 
AnswerRe: Ideas for writing an emulator around firmware update images Pin
Simon P Stevens21-Oct-08 22:13
Simon P Stevens21-Oct-08 22:13 
QuestionControlling an External Applications Window from C# App. Pin
Shanep21-Oct-08 12:13
Shanep21-Oct-08 12:13 
AnswerRe: Controlling an External Applications Window from C# App. Pin
Anthony Mushrow21-Oct-08 14:04
professionalAnthony Mushrow21-Oct-08 14:04 
The best you can get is a fixed size window with no minimize/maximize button. Which would be fine exceptyou can restore the window by double-clicking the caption bar, and since you removed the maximize button you can't maximize it again.

So, you could always remove the caption bar too. Anyway, this is the closest i could get:


const uint WS_CAPTION           = 0x00C00000;     /* WS_BORDER | WS_DLGFRAME  */
const uint WS_BORDER            = 0x00800000;
const uint WS_DLGFRAME          = 0x00400000;
const uint WS_THICKFRAME        = 0x00040000;
const uint WS_MINIMIZEBOX       = 0x00020000;
const uint WS_MAXIMIZEBOX       = 0x00010000;
const uint SW_MAXIMIZE          = 0x00000003;

uint newStyle = GetWindowLong(inet_pro.MainWindowHandle, GWL_STYLE);
newStyle ^= WS_THICKFRAME;
newStyle ^= WS_MAXIMIZEBOX;
newStyle ^= WS_MINIMIZEBOX;

SetWindowLong(inet_pro.MainWindowHandle, GWL_STYLE, newStyle);
ShowWindow(inet_pro.MainWindowHandle, SW_MAXIMIZE);


You could try removing WS_CAPTION and see how that works out for you, but then the only way to quit is ALT-F4.

My current favourite word is: Nipple!
-SK Genius

Game Programming articles start -here[^]-

GeneralRe: Controlling an External Applications Window from C# App. Pin
Shanep22-Oct-08 9:55
Shanep22-Oct-08 9:55 
Questionhave u seen these codes Pin
netJP12L21-Oct-08 10:00
netJP12L21-Oct-08 10:00 
AnswerRe: have u seen these codes Pin
Ennis Ray Lynch, Jr.21-Oct-08 10:13
Ennis Ray Lynch, Jr.21-Oct-08 10:13 
AnswerRe: have u seen these codes [modified] Pin
Mark Salsbery21-Oct-08 10:15
Mark Salsbery21-Oct-08 10:15 
GeneralRe: have u seen these codes Pin
Gideon Engelberth21-Oct-08 11:18
Gideon Engelberth21-Oct-08 11:18 
GeneralRe: have u seen these codes Pin
Mark Salsbery21-Oct-08 11:25
Mark Salsbery21-Oct-08 11:25 
AnswerRe: have u seen these codes Pin
harold aptroot21-Oct-08 13:40
harold aptroot21-Oct-08 13:40 
QuestionEnvironment.GetCommandLineArgs(); [modified] Pin
schiebel-t21-Oct-08 9:30
schiebel-t21-Oct-08 9:30 
AnswerRe: Environment.GetCommandLineArgs(); Pin
Dave Kreskowiak21-Oct-08 10:37
mveDave Kreskowiak21-Oct-08 10:37 
GeneralNtSuspendProcess (save a n00b) Pin
boberick221-Oct-08 9:20
boberick221-Oct-08 9:20 
GeneralRe: NtSuspendProcess (save a n00b) Pin
SeMartens21-Oct-08 9:45
SeMartens21-Oct-08 9:45 
QuestionbindingNavigator Pin
ahmadbakro21-Oct-08 8:22
ahmadbakro21-Oct-08 8:22 
QuestionObjForScrpt Pin
Christopher Hernandez21-Oct-08 5:37
Christopher Hernandez21-Oct-08 5:37 
AnswerRe: ObjForScrpt Pin
Simon P Stevens21-Oct-08 5:41
Simon P Stevens21-Oct-08 5:41 
GeneralRe: ObjForScrpt Pin
Christopher Hernandez22-Oct-08 9:09
Christopher Hernandez22-Oct-08 9:09 
GeneralRe: ObjForScrpt Pin
Pete O'Hanlon22-Oct-08 9:27
mvePete O'Hanlon22-Oct-08 9:27 
AnswerRe: ObjForScrpt Pin
Paul Conrad21-Oct-08 5:53
professionalPaul Conrad21-Oct-08 5:53 

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.