Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: broadcast socket messages to clients but how? Pin
Albert Pascual19-Apr-02 6:32
sitebuilderAlbert Pascual19-Apr-02 6:32 
Generalto find the windows version Pin
karanba18-Apr-02 22:43
karanba18-Apr-02 22:43 
GeneralRe: to find the windows version Pin
Jon Hulatt18-Apr-02 23:24
Jon Hulatt18-Apr-02 23:24 
GeneralRe: to find the windows version Pin
Tom Archer20-Apr-02 17:50
Tom Archer20-Apr-02 17:50 
Generalto find the windows version Pin
karanba18-Apr-02 22:38
karanba18-Apr-02 22:38 
GeneralRe: to find the windows version Pin
moliate19-Apr-02 7:05
moliate19-Apr-02 7:05 
Generaldisable/enabled minimize & close button Pin
NikoTanghe18-Apr-02 22:31
NikoTanghe18-Apr-02 22:31 
GeneralRe: disable/enabled minimize & close button Pin
Paul M Watt19-Apr-02 5:53
mentorPaul M Watt19-Apr-02 5:53 
Instead of this:

NikoTanghe wrote:

bool CDlg::EnableMinimizeButton(bool bEnable)
{

CMenu* pSystemMenu = GetSystemMenu(FALSE);

if (bEnable)
pSystemMenu->EnableMenuItem (SC_MINIMIZE, MF_ENABLED | MF_BYCOMMAND); //NOK
else
pSystemMenu->EnableMenuItem (SC_MINIMIZE, MF_GRAYED | MF_BYCOMMAND); //NOK

return true;
}


Try this:

bool CDlg::EnableMinimizeButton(bool bEnable)
{
LONG lStyle = GetWindowLong(GWL_STYLE);

if (bEnable)
    SetWindowLong(GWL_STYLE, lStyle | WS_MINIMIZEBOX);
else
    SetWindowLong(GWL_STYLE, lStyle & ~WS_MINIMIZEBOX);

return true;
}

This will set or remove the WS_MINIMIZEBOX style, which will remove the ability for your window to be minimized.



Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: disable/enabled minimize & close button Pin
NikoTanghe21-Apr-02 21:25
NikoTanghe21-Apr-02 21:25 
GeneralSelected text in memory Pin
Kemal OZLU18-Apr-02 21:45
Kemal OZLU18-Apr-02 21:45 
GeneralRe: Selected text in memory Pin
Paul M Watt19-Apr-02 5:46
mentorPaul M Watt19-Apr-02 5:46 
GeneralRe: Selected text in memory Pin
Kemal OZLU19-Apr-02 13:04
Kemal OZLU19-Apr-02 13:04 
GeneralRe: Selected text in memory Pin
Paul M Watt19-Apr-02 13:47
mentorPaul M Watt19-Apr-02 13:47 
GeneralUnlimited Socket receive Pin
Kristian3318-Apr-02 21:17
Kristian3318-Apr-02 21:17 
GeneralRe: Unlimited Socket receive Pin
18-Apr-02 23:07
suss18-Apr-02 23:07 
GeneralRe: Unlimited Socket receive Pin
Jon Hulatt18-Apr-02 23:33
Jon Hulatt18-Apr-02 23:33 
GeneralRe: Unlimited Socket receive Pin
19-Apr-02 3:38
suss19-Apr-02 3:38 
GeneralRe: Unlimited Socket receive Pin
Albert Pascual19-Apr-02 6:49
sitebuilderAlbert Pascual19-Apr-02 6:49 
GeneralC/C++ compiler Pin
NicholasCougar18-Apr-02 19:43
NicholasCougar18-Apr-02 19:43 
GeneralRe: C/C++ compiler Pin
Ravi Bhavnani18-Apr-02 20:17
professionalRavi Bhavnani18-Apr-02 20:17 
GeneralRe: C/C++ compiler Pin
Michael P Butler18-Apr-02 22:14
Michael P Butler18-Apr-02 22:14 
QuestionTextExtent??? Pin
Manikandan18-Apr-02 18:03
Manikandan18-Apr-02 18:03 
AnswerRe: TextExtent??? Pin
Paul M Watt18-Apr-02 18:09
mentorPaul M Watt18-Apr-02 18:09 
AnswerRe: TextExtent??? Pin
l a u r e n18-Apr-02 21:01
l a u r e n18-Apr-02 21:01 
GeneraltimeSetEvent Pin
Marcus Spitzmiller18-Apr-02 17:17
Marcus Spitzmiller18-Apr-02 17:17 

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.