|
|
Up |
|
|
  |
Author: Charlie GibbsCharlie Gibbs
Date: May 6, 2007 22:18
In article ,
dj3vande@caffeine.csclub.uwaterloo.ca (Dave Vandervies) writes:
> In article <2613.716T2905T7575930@kltpzyxm.invalid>,
> Charlie Gibbs wrote:
>
>> But - and this is where it gets really political - a cow orker is
>> claiming that my problems...
|
| Show full article (2.23Kb) |
|
| |
no comments
|
|
  |
Author: galapogosgalapogos
Date: May 6, 2007 20:44
Hi,
I'm writing a console program to directly read from and write to an
external USB HDD in sector level(so that I can access the drive w/o it
even being initialized/partitioned/formatted, and I'm wondering how to
get started. I've only done file level I/O before on directly
connected drives so I'm not sure how to identify the USB drive(USB
VID/
PID/serial number maybe?) and also how to address it directly. Are
there any primers for this to help me get started?
I tried playing around with GetLogicalDrives(),
GetLogicalDriveStrings() and CreateFile(), but these seem to work at
the logical level, so I don't know exactly which physical drive I'm
accessing.
Thanks!
|
| |
|
| |
1 Comment |
|
  |
Author:
Date: May 6, 2007 20:26
Vitor wrote:
>
> Thanks again for the help. I did get to run with some changes:
> SendMessage(list, CB_GETLBTEXT, sel,
> reinterpret_cast((LPCTSTR)czBuffer));
> number = atoi(czBuffer);
>
> It did run but as far as I can tell It didn't put return the int to
> number. Here is what I have so far, comments are just what I have been
> experimenting with.
>
> #include
>
> #include "game.h"
>
> extern int numPlayers;
>
> static int number;
>
> extern HINSTANCE hin; ...
|
| Show full article (2.56Kb) |
|
no comments
|
|
  |
Author: VitorVitor
Date: May 6, 2007 18:15
Scott McPhillips [MVP] wrote:
> Vitor wrote:
>>>> Again, thanks for the tip, this combo box is pretty confusing to
>>>> setup, it seems very different from others widgets I have used in a
>>>> dialog box but from the research I have done, and this is the best I
>>>> can do and it is not working. Can I get some clues to making the
>>>> comobox work?
>>>>
>>>> case WM_COMMAND:
>>>> switch(LOWORD(wp)){
>>>> case IDOK:
>>>> //BOOL bTran;
>>>> //number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE);
>>>> EndDialog(hwnd, TRUE);
>>>> return true;
>>>> break;
>>>> case IDC_LIST:
>>>> switch(HIWORD(wp)){
>>>> BOOL bTran;
>>>> number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE); ...
|
| Show full article (4.97Kb) |
|
no comments
|
|
  |
Author:
Date: May 6, 2007 15:53
Vitor wrote:
>>> Again, thanks for the tip, this combo box is pretty confusing to
>>> setup, it seems very different from others widgets I have used in a
>>> dialog box but from the research I have done, and this is the best I
>>> can do and it is not working. Can I get some clues to making the
>>> comobox work?
>>>
>>> case WM_COMMAND:
>>> switch(LOWORD(wp)){
>>> case IDOK:
>>> //BOOL bTran;
>>> //number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE);
>>> EndDialog(hwnd, TRUE);
>>> return true;
>>> break;
>>> case IDC_LIST:
>>> switch(HIWORD(wp)){
>>> BOOL bTran;
>>> number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE);
>>> } ...
|
| Show full article (3.23Kb) |
|
no comments
|
|
  |
Author: VitorVitor
Date: May 6, 2007 12:55
Scott McPhillips [MVP] wrote:
> Vitor wrote:
>> Again, thanks for the tip, this combo box is pretty confusing to
>> setup, it seems very different from others widgets I have used in a
>> dialog box but from the research I have done, and this is the best I
>> can do and it is not working. Can I get some clues to making the
>> comobox work?
>>
>> case WM_COMMAND:
>> switch(LOWORD(wp)){
>> case IDOK:
>> //BOOL bTran;
>> //number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE);
>> EndDialog(hwnd, TRUE);
>> return true;
>> break;
>> case IDC_LIST:
>> switch(HIWORD(wp)){
>> BOOL bTran;
>> number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE); ...
|
| Show full article (2.43Kb) |
|
no comments
|
|
  |
Author:
Date: May 6, 2007 11:13
Vitor wrote:
> Again, thanks for the tip, this combo box is pretty confusing to setup,
> it seems very different from others widgets I have used in a dialog box
> but from the research I have done, and this is the best I can do and it
> is not working. Can I get some clues to making the comobox work?
>
> case WM_COMMAND:
> switch(LOWORD(wp)){
> case IDOK:
> //BOOL bTran;
> //number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE);
> EndDialog(hwnd, TRUE);
> return true;
> break;
> case IDC_LIST:
> switch(HIWORD(wp)){
> BOOL bTran;
> number = GetDlgItemInt(list, IDC_LIST, &bTran, TRUE);
> }
> break; ...
|
| Show full article (1.35Kb) |
|
no comments
|
|
  |
Author: VitorVitor
Date: May 6, 2007 10:45
aleksa wrote:
> On May 5, 4:37 pm, Vitor comienet.ve.com> wrote:
>> I got some help creating a combo box and it all worked. I created a
>> combo box with four options and I would like to set an int to that number?
>>
>> const char * str[] = {"1", "2", "3", "4"};
>>
>> switch(msg){
>>
>> case WM_INITDIALOG:
>>
>> HWND list;
>>
>> list = GetDlgItem(hwnd, IDC_LIST);
>>
>> for(int lp = 0; lp != 4; lp++){
>> SendMessage(list, CB_ADDSTRING, lp,
>> reinterpret_cast((LPCTSTR)str[lp]));
>> }
>> ...
|
| Show full article (2.08Kb) |
|
no comments
|
|
  |
Author: VitorVitor
Date: May 6, 2007 09:14
aleksa wrote:
> On May 5, 4:37 pm, Vitor comienet.ve.com> wrote:
>> I got some help creating a combo box and it all worked. I created a
>> combo box with four options and I would like to set an int to that number?
>>
>> const char * str[] = {"1", "2", "3", "4"};
>>
>> switch(msg){
>>
>> case WM_INITDIALOG:
>>
>> HWND list;
>>
>> list = GetDlgItem(hwnd, IDC_LIST);
>>
>> for(int lp = 0; lp != 4; lp++){
>> SendMessage(list, CB_ADDSTRING, lp,
>> reinterpret_cast((LPCTSTR)str[lp]));
>> }
>> ...
|
| Show full article (1.88Kb) |
|
no comments
|
|
  |
|
|
  |
Author: Larry LindstromLarry Lindstrom
Date: May 5, 2007 23:13
Hi Folks:
Developing on XP Media, with VC6, WIN32, no MFC.
A google of "*win32" groups with with "NMTVCUSTOMDRAW" in the
body came up empty. Search of any post to this newsgroup with
"NMCUSTOMDRAW" anywhere in the body also came up dry. Variants
on those themes were also empty.
And I'm having a bad day to.
Out of many listboxes, one always returns -1 to
SendMessage(..., LB_GETCURSEL, ...) after double clicking, and
out of 11 identical combo boxes that use the same function to
service their button clicks, one does the same in response to
CB_GETCURSEL.
I can't look at those anymore, I need to take my mind off of
them with a little custom draw on a treeview.
I do a lot of owner draw on listboxes and combo boxes, but
I'm not familiar with customdraw. So I've studied an MSDN
page on the subject.
I have the treeview setup to draw white text on a blue
backgroud. I want to reverse that for the selected item.
|
| Show full article (3.41Kb) |
|
no comments
|
|
|
|
|
|
|