Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading small, built-in icons Pin
14-Jun-01 7:17
suss14-Jun-01 7:17 
GeneralRe: Loading small, built-in icons Pin
Ben Burnett14-Jun-01 7:41
Ben Burnett14-Jun-01 7:41 
GeneralRe: Loading small, built-in icons Pin
14-Jun-01 7:57
suss14-Jun-01 7:57 
GeneralRe: Loading small, built-in icons Pin
14-Jun-01 8:03
suss14-Jun-01 8:03 
GeneralRe: Loading small, built-in icons Pin
Ben Burnett14-Jun-01 9:19
Ben Burnett14-Jun-01 9:19 
Generalprint preview and multi frame app Pin
SAWilde14-Jun-01 6:35
SAWilde14-Jun-01 6:35 
GeneralSplitter window using C and NOT C++ Pin
14-Jun-01 6:33
suss14-Jun-01 6:33 
GeneralRe: Splitter window using C and NOT C++ Pin
Tomasz Sowinski15-Jun-01 0:01
Tomasz Sowinski15-Jun-01 0:01 
You can create splitter in C. Below I'm assuming that you want simple two-way vertical splitter, you can generalize this solution to horizontals and combined splitters.

1) Registering your main window class use your own cursor looking more or less like this: <-|->

2) create your child windows in WM_CREATE handler. Use WS_EX_CLIENTEDGE style for 3D look.

3) in WM_SIZE handler ensure that height of these windows is equal to the height of main window's client area. Set that widths are set to the value that leaves some small area between two child windows. This area is your splitter bar.

3) your main window will receive mouse-related messages only if cursor is placed in the 'splitter' - the area between child windows. In WM_LBUTTONDOWN handler capture the mouse, resize child windows in subsequent WM_MOUSEMOVEs, and release mouse in WM_LBUTTONUP.

Tomasz Sowinski -- http://www.shooltz.com.pl
Generalarray of checkboxes Pin
14-Jun-01 6:18
suss14-Jun-01 6:18 
GeneralRe: array of checkboxes Pin
Carlos Antollini14-Jun-01 6:27
Carlos Antollini14-Jun-01 6:27 
Generalfine, don't answer my question, see if i care Pin
Amit Jain14-Jun-01 5:29
Amit Jain14-Jun-01 5:29 
GeneralRe: fine, don't answer my question, see if i care Pin
Tim Deveaux14-Jun-01 14:59
Tim Deveaux14-Jun-01 14:59 
GeneralRe: fine, don't answer my question, see if i care Pin
Amit Jain15-Jun-01 4:13
Amit Jain15-Jun-01 4:13 
GeneralSerialization question Pin
mr200314-Jun-01 4:15
mr200314-Jun-01 4:15 
GeneralRe: Serialization question Pin
Ben Burnett14-Jun-01 8:01
Ben Burnett14-Jun-01 8:01 
GeneralRe: Serialization question Pin
markkuk14-Jun-01 20:46
markkuk14-Jun-01 20:46 
Questionhow to set the IP address during programming Pin
14-Jun-01 3:07
suss14-Jun-01 3:07 
AnswerRe: how to set the IP address during programming Pin
Carlos Antollini14-Jun-01 4:26
Carlos Antollini14-Jun-01 4:26 
AnswerRe: it's tough! Pin
Masaaki Onishi14-Jun-01 6:55
Masaaki Onishi14-Jun-01 6:55 
GeneralRe: it's tough! Pin
15-Jun-01 1:53
suss15-Jun-01 1:53 
GeneralRe: it's tough! Pin
Masaaki Onishi15-Jun-01 3:59
Masaaki Onishi15-Jun-01 3:59 
GeneralCompare structures Pin
User 665814-Jun-01 1:36
User 665814-Jun-01 1:36 
GeneralRe: Compare structures Pin
Monty14-Jun-01 2:15
Monty14-Jun-01 2:15 
GeneralRe: Compare structures Pin
Bryan Pietrzak14-Jun-01 12:16
Bryan Pietrzak14-Jun-01 12:16 
GeneralRe: Compare structures Pin
Monty14-Jun-01 20:48
Monty14-Jun-01 20:48 

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.