Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ for code borrowing. 'ffi' gem serves as a solid basis for this library, allowing
use it for multiple Ruby implementations.

== Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
Expand Down
2 changes: 1 addition & 1 deletion lib/win/gui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require 'win/gui/menu'

module Win

# Contains several modules defining Win32 API functions and constants related to Windows GUI (Graphical User Interface)
#
module Gui
Expand Down
4 changes: 2 additions & 2 deletions lib/win/gui/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module Dialog
# The user must respond to the message box before continuing work in the window identified by the hWnd
# parameter. However, the user can move to the windows of other threads and work in those windows.
# Depending on the hierarchy of windows in the App, the user may be able to move to other
# windows within the thread. All child windows of the parent of the message box are automatically
# windows within the thread. All child windows of the parent of the message box are automatically
# disabled, but pop-up windows are not.
# MB_APPLMODAL is the default if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified.
MB_APPLMODAL = 0x00000000
Expand Down Expand Up @@ -207,7 +207,7 @@ module Dialog
# *Remarks*:
# You can use the GetDlgItem function with any parent-child window pair, not just with dialog boxes.
# As long as the hDlg parameter specifies a parent window and the child window has a unique identifier
# (as specified by the hMenu parameter in the CreateWindow or CreateWindowEx function that created the
# (as specified by the hMenu parameter in the CreateWindow or CreateWindowEx function that created the
# child window), GetDlgItem returns a valid handle to the child window.
# ---
# <b>Enhanced (snake_case) API: returns nil if function fails</b>
Expand Down
2 changes: 1 addition & 1 deletion lib/win/gui/input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ module Input
# :call-seq:
# x, y = get_cursor_pos()
#
function :GetCursorPos, [:pointer], :int8,
function :GetCursorPos, [:pointer], :int8,
&->(api) {
point = FFI::MemoryPointer.new(:long, 2)
res = api.call point
Expand Down
4 changes: 2 additions & 2 deletions lib/win/gui/menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ module Menu
# data related to the menu item. The value is in the itemData member of the structure
# pointed to by the lParam parameter of the WM_MEASUREITEM or WM_DRAWITEM message
# sent when the menu is created or its appearance is updated.
# MF_STRING:: Contains a pointer to a null-terminated string.
# MF_STRING:: Contains a pointer to a null-terminated string.
#
# *Returns*:: If the function succeeds, the return value is nonzero. If the function fails, the return
# value is zero. To get extended error information, call GetLastError.
Expand Down Expand Up @@ -730,7 +730,7 @@ module Menu
#
# ---
# <b>Enhanced (snake_case) API: returns true/false instead of 1/0</b>
#
#
# :call-seq:
# success = delete_menu(menu_handle, position, flags)
#
Expand Down
4 changes: 2 additions & 2 deletions lib/win/gui/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Gui
#
# Below is a table of system-defined message prefixes:
#
# *Prefix*:: *Message* *category*
# *Prefix*:: *Message* *category*
# ABM:: App desktop toolbar
# BM:: Button control
# CB:: Combo box control
Expand Down Expand Up @@ -586,7 +586,7 @@ class Msg < FFI::Struct
# GetMessage does not remove WM_PAINT messages from the queue. The messages remain in the queue until
# processed.
#
# Windows XP: If a top-level window stops responding to messages for more than several seconds, the
# Windows XP: If a top-level window stops responding to messages for more than several seconds, the
# system considers the window to be not responding and replaces it with a ghost window that has the same
# z-order, location, size, and visual attributes. This allows the user to move it, resize it, or even
# close the App. However, these are the only actions available because the App is
Expand Down
4 changes: 2 additions & 2 deletions lib/win/gui/window.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def return_string( encode = nil ) #:nodoc:
# ---
# *Remarks*:
# A thread <b>cannot use DestroyWindow to destroy a window created by a different thread.</b> Use a convenience
# method destroy_unowned_window instead (it relies on
# method destroy_unowned_window instead (it relies on
# If the window being destroyed is a child window that does not have the WS_EX_NOPARENTNOTIFY style, a
# WM_PARENTNOTIFY message is sent to the parent.
#
Expand Down Expand Up @@ -636,7 +636,7 @@ def return_string( encode = nil ) #:nodoc:

##
# SetForegroundWindow function puts the thread that created the specified window into the foreground
# and activates the window. Keyboard input is directed to the window, and various visual cues are
# and activates the window. Keyboard input is directed to the window, and various visual cues are
# changed for the user. The system assigns a slightly higher priority to the thread that created the
# foreground window than it does to other threads.
#
Expand Down