<rss version="2.0">
<channel>
<title>comp.os.os2.programmer.misc :: Programming OS/2 machines.</title>
<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/</link>
<description>Posts for comp.os.os2.programmer.misc</description>
<lastBuildDate>Fri, 25 Jul 2008 11:18:39 PDT</lastBuildDate>
  <image>
    <title>http://www.nnseek.com/</title>
    <link>http://www.nnseek.com/</link>
    <url>http://www.nnseek.com/img/64.png</url>
    <width>64</width>
    <height>64</height>
    <description>NNSeek</description>
  </image>
<item>
	<title><![CDATA[REQ: RollBall update]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/req_rollball_update_109896185t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/req_rollball_update_109896185t.html</link>
	<description><![CDATA[<br>Can <a href="http://hobbes.nmsu.edu/pub/os2/games/action/rollball.zip" rel="nofollow" class="url" target="_blank">http://hobbes.nmsu.edu/pub/os2/games/action/rollball.zip</a> be fixed,<br>so it'll work with both modern computers and 1992-ones? Full source is<br>included, overloaded with comments. IBM C Set/2 makefile present. Just<br>a longer period of DosSleep() and a recompile may be needed here? The<br>executing speed seems to be the only problem.<br><br>FWIW: modifying is allowed, and it may be useless nowadays to honour a<br>mentioned request to distribute both the outdated original version and<br>the fixed version.<br><br><br><br>---<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/req_rollball_update_109896185t.html"><b>23</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/req_rollball_update_109896185m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Fri, 25 Jul 2008 11:18:39 PDT</pubDate>
</item>
<item>
	<title><![CDATA[WinShowWindow and WM_PAINT]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/winshowwindow_and_wm_paint_109343225t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/winshowwindow_and_wm_paint_109343225t.html</link>
	<description><![CDATA[After trying many times to upload a whole system image with my<br>development environment I gave up and decided to try a different<br>approach. Since the main stepping stone for people to help me is the<br>need of VAC++ 4.0 I decided to continue the work on the Watcom branch<br>created sometime ago.<br><br>After some work, I was finally able to compile the whole SWT port<br>under Watcom + ant <a href="http://1.5.4" rel="nofollow" class="url" target="_blank">1.5.4</a> + Java <a href="http://1.3.1" rel="nofollow" class="url" target="_blank">1.3.1</a> . After that I began testing the<br>testcases. The first one works, meaning the JNI interface works. The<br>second test doesn't. The test creates a main frame and a client<br>window, but it only draws the window's borders and then it enters in a<br>loop where there is a WM_PAINT message being sent. The machine becomes<br>on the verge of freezing and it takes some luck to get it back. The<br>same test, using the DLL created with VAC++ 4.0 works just fine. The<br>Java sources are the same and so it's the C code.<br><br>The problem starts with a call to WinShowWindow. I'm pretty lost,<br>since I don't know where to start to look for answers. Maybe a<br>compilers option?, simply I can't imagine why I get a different<br>behavior from the same code on different compilers.<br><br>Here is the compilers options being used:<br><br>!include <make_os2.mak><br><br>objects=editcol.obj structs.obj swt.obj callback.obj<br>CFLAGS=-w4 -e25 -zq -od -d2 -bd -6r -bt=os2 -mf<br><br>$(SWT_LIB) : $(objects)<br>	wlink name $@ SYS os2v2 dll initi termi op m, maxe=25, q, symf, many<br>file { $(objects) }<br>	wlib -q -n -b $*.lib +$*.dll<br>	copy $(SWT_LIB) $(SWT_LOCATION)<br><br>all : $(SWT_LIB)<br><br>clean:<br>	-del *.obj *.err *.dll *.lib *.map $(SWT_LOCATION)\$(SWT_LIB)<br><br>editcol.obj : editcol.c .AUTODEPEND<br>	wcc386 editcol $(CFLAGS)<br><br>structs.obj : structs.c .AUTODEPEND<br>	wcc386 structs $(CFLAGS)<br><br>swt.obj : swt.c .AUTODEPEND<br>	wcc386 swt $(CFLAGS)<br><br>callback.obj : "..\..\..\Eclipse SWT\common\library<br>\callback.c" .AUTODEPEND<br>	wcc386 "..\..\..\Eclipse SWT\common\library\callback.c" $(CFLAGS)<br><br>Thanks<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/winshowwindow_and_wm_paint_109343225t.html"><b>10</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/winshowwindow_and_wm_paint_109343225m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 22 Jul 2008 18:07:12 PDT</pubDate>
</item>
<item>
	<title><![CDATA[WinGetLastError()]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/wingetlasterror_108308473t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/wingetlasterror_108308473t.html</link>
	<description><![CDATA[Hello,<br>  I have a function to load a container in details view that wraps the<br>CM_INSERTRECORDARRAY message. If WinSendMsg() returns 0, it indicates the<br>request failed for some reason and WinGetLastError() has the reason.<br>  WinGetLastError() uses an anchor block to decide where the error code<br>exists.<br>  My problem is how to *get* the appropriate anchor block. As it turns out<br>it is not the anchor block of the window where the request failed but the<br>thread that initiated the request. A window's anchor block is retrieved<br>with WinQueryAnchorBlock(HWND) but that is no use in the multi-threaded<br>application.<br>  How do I get the current thread's anchor block?<br><br>-- <br>jmm (hyphen) list (at) sohnen-moe (dot) com<br>(Remove .AXSPAMGN for email)<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/wingetlasterror_108308473t.html"><b>17</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/wingetlasterror_108308473m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sun, 13 Jul 2008 12:41:42 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Three different labels in the head of a notebook control]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/three_different_labels_in_the_head_of_a_notebook_c_107174905t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/three_different_labels_in_the_head_of_a_notebook_c_107174905t.html</link>
	<description><![CDATA[Hi,<br><br>is it possible that the title of the selected notebook page is different <br>from the text in the selected tab?<br><br>E.g.:<br><br>   __________   _________<br>  /Category 1\ /Category2\<br>_____________/           \__________________________________<br>|                                                          |<br>| +--------------------------------------------------+---+ |<br>| |                                                  |\ +| |<br>| | Subcategory                             Page 1/3 | \ | |<br>| |                                                  |- \| |<br>| +--------------------------------------------------+---+ |<br><br><br>Marcel<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/three_different_labels_in_the_head_of_a_notebook_c_107174905t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/three_different_labels_in_the_head_of_a_notebook_c_107174905m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sat, 05 Jul 2008 08:33:22 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Saving and restoring windows]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/saving_and_restoring_windows_106361593t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/saving_and_restoring_windows_106361593t.html</link>
	<description><![CDATA[An application has code to save its widnows so they can be restored <br>when the application is restarted. But the code does not work as <br>intended. <br><br>The child window which has the focus seems to affect the save/restore <br>process. For example, if window X has the focus the restore places the<br>windows one way but, with the same arrangement of windows, if window Y<br>has the focus the restore places the windows differently.<br><br>Please help me with references to documentation and/or sample code <br>which would show how to accomplish this task?<br><br>TIA.<br><br>-- <br><br>John Small<br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/saving_and_restoring_windows_106361593t.html"><b>8</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/saving_and_restoring_windows_106361593m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sun, 29 Jun 2008 03:39:25 PDT</pubDate>
</item>
<item>
	<title><![CDATA[How to know the window class]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_know_the_window_class_105801977t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_know_the_window_class_105801977t.html</link>
	<description><![CDATA[I'm trying to process the WM_DRAWITEM message and I need to discover<br>what type of control is posting it. Someting like:<br><br>int class = SOME API;<br>if(class == WC_MENU)<br>  paint the menu item<br>else if(class == WC_LISTBOX)<br>  paint the list box<br><br>Is there something like that.<br><br>Thanks<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_know_the_window_class_105801977t.html"><b>8</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_know_the_window_class_105801977m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Wed, 25 Jun 2008 09:00:01 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Event sequences for emphasis changes]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/event_sequences_for_emphasis_changes_105563385t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/event_sequences_for_emphasis_changes_105563385t.html</link>
	<description><![CDATA[Hello,<br>  Our program has two containers side by side. The left one is a tree<br>view; the right one is in details views. Selecting a folder in the tree<br>(left) view causes the contents of the folder to display in the details<br>view container.<br>  Also the tree view allows multiple levels which may be expanded and<br>collapsed.<br>  When an expanded view is collapsed, the usual (expected) sequence of<br>events is CN_EMPHASIS and the flags indicate a loss of emphasis. Then<br>another CN_EMPHASIS with the flags showing a gain of emphasis. This is good.<br>  Based on the above, the code expects to clear the details window before<br>re-populating it.<br>  But the opposite sequence is also happens! The gain of emphasis can<br>arrive *before* the loss. This results with the details window briefly<br>showing the contents of both folders before it is cleared, showing nothing.<br><br>  Is this normal behavior?<br><br>-- <br>jmm (hyphen) list (at) sohnen-moe (dot) com<br>(Remove .AXSPAMGN for email)<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/event_sequences_for_emphasis_changes_105563385t.html"><b>6</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/event_sequences_for_emphasis_changes_105563385m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 23 Jun 2008 22:25:21 PDT</pubDate>
</item>
<item>
	<title><![CDATA[How to change class of a file object (&quot;Become&quot; page functionality) ?]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_change_class_of_a_file_object_become_page_f_105407481t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_change_class_of_a_file_object_become_page_f_105407481t.html</link>
	<description><![CDATA[Hi,<br><br>all file objects (WPDataFile or derived) have a "Become" page (or <br>"Object class" ?) where you can change their class to a selection of <br>other compatible classes where "compatible classes" do not necessarily <br>have to be anchestors of the current class (they can also be children of <br>anchestors, therefore can be siblings of parent or grandparent etc. <br>classes) but I guess they are restricted to be at least of WPFileSystem <br>or derived classses.<br>The user interface is there but I cannot see what SOM method supports <br>that. Anyone have any insight what SOM method supports this class change <br>or any idea how I can debug what SOM method is called on that user action ?<br>I have found method somCastObjCls (defined for SOMClass class) which <br>maybe does the right thing. However it is not documented and therefore <br>the parameters not defined (also not in the interface repository) so it <br>will be trial and error to find the right parameters ...<br><br>Maybe the interface is: BOOL somCastObjCls(SOMClass *receiver,SOMObject <br>*targetObj,somId *targetClass);<br><br>Any help or hints ?<br><br>Lars<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_change_class_of_a_file_object_become_page_f_105407481t.html"><b>34</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/how_to_change_class_of_a_file_object_become_page_f_105407481m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sun, 22 Jun 2008 15:01:23 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Perfect eComStation -- information for developers]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/perfect_ecomstation_information_for_developers_105264633t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/perfect_ecomstation_information_for_developers_105264633t.html</link>
	<description><![CDATA[eComStation 2.0 is under construction -- <a href="http://ecomstation.com/ecomstation20.phtml" rel="nofollow" class="url" target="_blank">http://ecomstation.com/ecomstation20.phtml</a><br>you can feel the power of new version today if install a release-<br>candidate.<br><br>Which features to implement in eComStation 2.1? The users post their<br>requests to the forums:<br>* Perfect eComStation -- <a href="http://forum.ecomstation.ru/viewforum.php?f=8" rel="nofollow" class="url" target="_blank">http://forum.ecomstation.ru/viewforum.php?f=8</a><br>* I need new applications -- <a href="http://forum.ecomstation.ru/viewforum.php?f=14" rel="nofollow" class="url" target="_blank">http://forum.ecomstation.ru/viewforum.php?f=14</a><br><br>Forecast of eComStation development (not updated) --<br><a href="http://ecomstation.ru/projects/esway/?action=links" rel="nofollow" class="url" target="_blank">http://ecomstation.ru/projects/esway/?action=links</a><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/perfect_ecomstation_information_for_developers_105264633t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/perfect_ecomstation_information_for_developers_105264633m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Fri, 20 Jun 2008 13:36:24 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Wine reaches version 1.0]]></title>
	<guid>http://www.nnseek.com/e/comp.os.os2.programmer.misc/wine_reaches_version_1_0_105172217t.html</guid>
	<link>http://www.nnseek.com/e/comp.os.os2.programmer.misc/wine_reaches_version_1_0_105172217t.html</link>
	<description><![CDATA[Sir:<br><br>Is anyone interested in updating Odin since Wine has finally gone GA?<br>-- <br>Bill<br>Thanks a Million!<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/">comp.os.os2.programmer.misc</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/wine_reaches_version_1_0_105172217t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.os.os2.programmer.misc/wine_reaches_version_1_0_105172217m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Thu, 19 Jun 2008 20:20:50 PDT</pubDate>
</item>
</channel>
</rss>