comp.os.os2.programmer.misc
  Home FAQ Contact Sign in
comp.os.os2.programmer.misc only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.os.os2.programmer.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  WinShowWindow and WM_PAINT         


Author: lpino
Date: Jul 22, 2008 18:07

After trying many times to upload a whole system image with my
development environment I gave up and decided to try a different
approach. Since the main stepping stone for people to help me is the
need of VAC++ 4.0 I decided to continue the work on the Watcom branch
created sometime ago.

After some work, I was finally able to compile the whole SWT port
under Watcom + ant 1.5.4 + Java 1.3.1 . After that I began testing the
testcases. The first one works, meaning the JNI interface works. The
second test doesn't. The test creates a main frame and a client
window, but it only draws the window's borders and then it enters in a
loop where there is a WM_PAINT message being sent. The machine becomes
on the verge of freezing and it takes some luck to get it back. The
same test, using the DLL created with VAC++ 4.0 works just fine. The
Java sources are the same and so it's the C code.

The problem starts with a call to WinShowWindow. I'm pretty lost,
since I don't know where to start to look for answers. Maybe a
compilers option?, simply I can't imagine why I get a different
behavior from the same code on different compilers.

Here is the compilers options being used:
Show full article (1.91Kb)
1 Comment
  WinGetLastError()         


Author: Jim Moe
Date: Jul 13, 2008 12:41

Hello,
I have a function to load a container in details view that wraps the
CM_INSERTRECORDARRAY message. If WinSendMsg() returns 0, it indicates the
request failed for some reason and WinGetLastError() has the reason.
WinGetLastError() uses an anchor block to decide where the error code
exists.
My problem is how to *get* the appropriate anchor block. As it turns out
it is not the anchor block of the window where the request failed but the
thread that initiated the request. A window's anchor block is retrieved
with WinQueryAnchorBlock(HWND) but that is no use in the multi-threaded
application.
How do I get the current thread's anchor block?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
17 Comments
  Three different labels in the head of a notebook control         


Author: Marcel Müller
Date: Jul 5, 2008 08:33

Hi,

is it possible that the title of the selected notebook page is different
from the text in the selected tab?

E.g.:

__________ _________
/Category 1\ /Category2\
_____________/ \__________________________________
| |
| +--------------------------------------------------+---+ |
| | |\ +| |
| | Subcategory Page 1/3 | \ | |
| | |- \| |
|
--------------------------------------------------+---+ |

Marcel
2 Comments
  Saving and restoring windows         


Author: John Small
Date: Jun 29, 2008 03:39

An application has code to save its widnows so they can be restored
when the application is restarted. But the code does not work as
intended.

The child window which has the focus seems to affect the save/restore
process. For example, if window X has the focus the restore places the
windows one way but, with the same arrangement of windows, if window Y
has the focus the restore places the windows differently.

Please help me with references to documentation and/or sample code
which would show how to accomplish this task?

TIA.

--

John Small
8 Comments
  How to know the window class         


Author: lpino
Date: Jun 25, 2008 09:00

I'm trying to process the WM_DRAWITEM message and I need to discover
what type of control is posting it. Someting like:

int class = SOME API;
if(class == WC_MENU)
paint the menu item
else if(class == WC_LISTBOX)
paint the list box

Is there something like that.

Thanks
8 Comments
  Event sequences for emphasis changes         


Author: Jim Moe
Date: Jun 23, 2008 22:25

Hello,
Our program has two containers side by side. The left one is a tree
view; the right one is in details views. Selecting a folder in the tree
(left) view causes the contents of the folder to display in the details
view container.
Also the tree view allows multiple levels which may be expanded and
collapsed.
When an expanded view is collapsed, the usual (expected) sequence of
events is CN_EMPHASIS and the flags indicate a loss of emphasis. Then
another CN_EMPHASIS with the flags showing a gain of emphasis. This is good.
Based on the above, the code expects to clear the details window before
re-populating it.
But the opposite sequence is also happens! The gain of emphasis can
arrive *before* the loss. This results with the details window briefly
showing the contents of both folders...
Show full article (0.95Kb)
6 Comments
  How to change class of a file object ("Become" page functionality) ?         


Author: Lars Erdmann
Date: Jun 22, 2008 15:01

Hi,

all file objects (WPDataFile or derived) have a "Become" page (or
"Object class" ?) where you can change their class to a selection of
other compatible classes where "compatible classes" do not necessarily...
Show full article (1.07Kb)
34 Comments
  Perfect eComStation -- information for developers         


Author: eugenegorbunoff
Date: Jun 20, 2008 13:36

eComStation 2.0 is under construction -- http://ecomstation.com/ecomstation20.phtml
you can feel the power of new version today if install a release-
candidate.

Which features to implement in eComStation 2.1? The users post their
requests to the forums:
* Perfect eComStation
no comments
  Wine reaches version 1.0         


Author: William L. Hartzell
Date: Jun 19, 2008 20:20

Sir:

Is anyone interested in updating Odin since Wine has finally gone GA?
--
Bill
Thanks a Million!
2 Comments
  Ryhmän sfnet.harrastus.kulttuuri virallinen kuvaus         


Author: Ilari Rossi
Date: Jun 16, 2008 04:05

Taas juttu josta en ole yhtään "virallista uutista" bongannut. Mutta yhtä
kaikki Venäjää kohauttaa tilanne siitä, että koko maasta on torakat kadonnet
kuin taikaiskusta kaikkialta. Tässä on jotain todella outoa nyt kyseessä.
Torakka on äärimmäisen vanhaa eläinpopulaatiosuuntaa. Jolla on
selkäytimissään sellaista käyttäytymismallia, jota harvalla eläimellä on.
Toisaalta torakkaa pidetään aivan yleisesti äärimmäisen herkkänä, suorastan
legendaarísen tarkkana hahmottamaan elinympäristönsä vaaratilannemuutoksia.
Muistamme miten mm. norsut, ja viisaammat eläimet pelastautui taanoisesta
tsunamista pakenemalla ennakoiden laumoin vuorille, siksi uutinen torakoista
"huolestuttaa" yli uutiskynnysten? Torakan toki pitäisi olla varsin kestävä
myös säteilyn suhteen. Ymmärtääkseni kuolleina näitä ei ole...
Show full article (3.69Kb)
no comments
 
1 2 3 4 5 6 7 8 9