🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.ms.programmer
3 messages
3 total messages Started by Brian Goble Tue, 11 Aug 1992 22:05
Removing & UnRemoving SysMenu, TitleBar, MinMax buttons
#6
Author: Brian Goble
Date: Tue, 11 Aug 1992 22:05
23 lines
1352 bytes
I am trying to make my Windows app capable of dynamically changing 
it's system menu, title bar, min/max buttons, etc.

I am writing a program that sometimes will be on display and I don't
want the users to be able to resize the window, minimize it, close it, etc.
(although I'll implement a "secret" method to regain control :)

Rather than just trapping the above messages, I'd rather "remove" (or hide)
the system menu, title bar, and min/max buttons and, of course, be able to
UnRemove (or unhide) them all.

So far, I can't figure out how to do any of the above...please help if you
can!  Thanx!

-Brian



-- 
 ==)------------
               Brian Goble    |    goble@hardy.u.washington.edu
               "Finishing a close second means you didn't win."
                                                              ------------(==
Re: Removing & UnRemoving SysMenu, TitleBar, MinMax buttons
#476
Author: Jeroen W. Pluimers
Date: Wed, 12 Aug 1992 18:39
29 lines
1847 bytes
In article <1992Aug11.220535.14031@u.washington.edu> goble@hardy.u.washington.edu (Brian Goble) writes:
>I am trying to make my Windows app capable of dynamically changing 
>I am writing a program that sometimes will be on display and I don't
>want the users to be able to resize the window, minimize it, close it, etc.
>(although I'll implement a "secret" method to regain control :)
>
>Rather than just trapping the above messages, I'd rather "remove" (or hide)
To get rid of the buttons, create your window without the ws_MinimizeBox
and ws_MaximizeBox.

Tchange the system menu, get a menu handle as follows:
  
  hMenu := GetSystemMenu(hWindow, False);

Then you can modify the menu as follows (for instance to remove the Close
option):

  ModifyMenu (hMenu, sc_Close, mf_ByCommand + mf_Grayed);

This will gray the Close option.


--
    o _   _  _   _   _             voice: +31-2522-20908 (19:00-24:00 UTC)
   / (_' |  (_) (_' | |            snail: P.S.O.
__/                                       attn. Jeroen W. Pluimers
                                          P.O. Box 266
jeroenp@rulfc1.LeidenUniv.nl              2170 AG Sassenheim
jeroen_pluimers@f521.n281.z2.fidonet.org  The Netherlands
2 List Boxes in one window... Transfering Information
#477
Author: Alexander Shinkar
Date: Fri, 14 Aug 1992 04:59
40 lines
1848 bytes
Hi, Maby some one out there could help me.
Im trying to open up a dialog box, that has 2 list boxes...
I cant seem to figure out what Im doing wrong...
I know that it is something to do with

TransferBuffer

I have to write it like that, so that when I click on the
AvailableListBox, the information gets transfered to the
SelectedListBox... (sort of like the printer and font stuff in windows)

Im using BC++ 3.0, win 3.1
Thanks in advance.
Alex
axs9017@hertz.njit.edu

here is the proc..
TLBoxWindow::TLBoxWindow() : TDialog(NULL, "CONTACT_SKILLS")
{

	SelectedListBox = new TListBox(this, ID_SELECTED_LISTBOX);
	SelectedListBoxData = new TListBoxData();
	SelectedListBox->EnableTransfer();

	AvailableListBox = new TListBox(this, ID_AVAILABLE_LISTBOX);
	AvailableListBoxData = new TListBoxData();
	AvailableListBox->EnableTransfer();

	AvailableListBoxData->AddString("Kathy");
	AvailableListBoxData->AddString("Dan",TRUE);
	AvailableListBoxData->AddString("Mike");

	TransferBuffer= &AvailableListBoxData;
	TransferBuffer= &SelectedListBoxData;

	EnableKBHandler(); // so focus goes to AvailableListBox, see also lboxtest.cpp

}
-- 
Is your job running? You'd better go catch it!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads